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.








CreateControlCollection Method

Returns the collection of all controls that are contained in the UpdatePanel control.



protected override sealed ControlCollection CreateControlCollection ()


Protected Overrides NotOverridable Function CreateControlCollection As ControlCollection


virtual ControlCollection^ CreateControlCollection () override sealed


protected final ControlCollection CreateControlCollection ()

Return Value

Return Value

A ControlCollection object that consists of all controls that define the content of the UpdatePanel control.


The CreateControlCollection() method is used by control developers.

Because this method is protected and sealed, it is visible to classes that inherit from the UpdatePanel class, but it cannot be overridden. This method overrides the base implementation to return a specialized ControlCollection object that throws an InvalidOperationException when the Add(Control), AddAt(Int32, Control), Clear(), Remove(Control), or RemoveAt(Int32) method of the ControlCollection class is invoked. To change the content of the UpdatePanel control, modify the child controls of the ContentTemplateContainer property.

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