ListBox::OnPreRender Method (EventArgs^)
.NET Framework (current version)
Configures the ListBox control prior to rendering on the client.
Assembly: System.Web (in System.Web.dll)
The OnPreRender method is used primarily by control developers, when deriving a custom control from the ListBox class. The OnPreRender method allows derived classes to handle the PreRender event without attaching a delegate. This is the preferred technique for handling the event in a derived class.
The OnPreRender method performs any necessary prerendering steps prior to saving view state and rendering content for the ListBox.
Notes to Inheritors:
When overriding the OnPreRender method in a derived class, be sure to call the OnPreRender method of the base class so that registered delegates receive the event.
.NET Framework
Available since 1.1
Available since 1.1
Show: