Documentation for: ASP.NET Ajax Version 1.0

This documentation is for a previous version. For the current released version, see the ASP.NET Ajax documentation on MSDN.

 

 

 

 

 

 

 

Controls Property

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

Syntax

CSharp

public override sealed ControlCollection Controls { get; }

VisualBasic

Public Overrides NotOverridable ReadOnly Property Controls As ControlCollection

ManagedCPlusPlus

public:
virtual ControlCollection^ Controls {
	ControlCollection^ get () override sealed;
}

JSharp

/** @property */

Value

Return Value

The collection of child controls for the UpdatePanel control.

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.

Exceptions

ExceptionCondition
InvalidOperationException

The Add(Control), AddAt(Int32, Control), Clear(), Remove(Control), or RemoveAt(Int32) method of the ControlCollection class has been called. To change the content of the UpdatePanel control, modify the child controls of the ContentTemplateContainer property.

Assembly: System.Web.Extensions (Module: System.Web.Extensions)