Literal::CreateControlCollection Method ()
.NET Framework (current version)
Creates an EmptyControlCollection object for the current instance of the Literal control.
Assembly: System.Web (in System.Web.dll)
Return Value
Type: System.Web.UI::ControlCollection^A ControlCollection object to contain the current server control's child server controls.
The following code example demonstrates how to override the CreateControlCollection method in a custom server control so that it always returns an instance of the EmptyControlCollection class for the Literal object.
.NET Framework
Available since 1.1
Available since 1.1
Show: