DropDownList.CreateControlCollection Method ()

 
Use BaseTrue

Creates a collection to store child controls.

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

override CreateControlCollection : unit -> ControlCollection

Return Value

Type: System.Web.UI.ControlCollection

Always returns an EmptyControlCollection.

The following code example demonstrates how to override the CreateControlCollection method in a custom server control so that it always returns a new instance of the EmptyControlCollection class for the DropDownList control. For information about using custom server controls, see Walkthrough: Developing and Using a Custom Web Server Control.

No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: