UpdatePanel.Controls UpdatePanel.Controls UpdatePanel.Controls UpdatePanel.Controls Property

Definition

Gets the ControlCollection object that contains the child controls for the UpdatePanel control.

public:
 property System::Web::UI::ControlCollection ^ Controls { System::Web::UI::ControlCollection ^ get(); };
public override sealed System.Web.UI.ControlCollection Controls { get; }
member this.Controls : System.Web.UI.ControlCollection
Public Overrides NotOverridable ReadOnly Property Controls As ControlCollection

Property Value

The collection of child controls for the UpdatePanel control.

Exceptions

Remarks

The Controls property is overridden from the base Control class and sealed to prevent additional derivation. To add controls to the UpdatePanel control declaratively, create a <ContentTemplate> element inside the UpdatePanel control markup. To add controls to the UpdatePanel control programmatically, use the ContentTemplateContainer property.

Applies to

See also