UpdatePanel::CreateControlCollection Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Use BaseTrue

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

Namespace:   System.Web.UI
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

virtual ControlCollection^ CreateControlCollection() override sealed

Return Value

Type: System.Web.UI::ControlCollection^

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, AddAt, Clear, Remove, or RemoveAt method of the ControlCollection class is invoked. To change the content of the UpdatePanel control, modify the child controls of the ContentTemplateContainer property.

.NET Framework
Available since 3.5
Return to top