Export (0) Print
Expand All

UpdatePanel.CreateControlCollection Method

This member overrides Control.CreateControlCollection, and more complete documentation might be available in that topic.

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)

'Declaration
Protected Overrides NotOverridable Function CreateControlCollection As ControlCollection

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

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft