HtmlSelect.OnInit Method (EventArgs)

 

Raises the Init event for the HtmlSelect control.

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

override OnInit : 
        e:EventArgs -> unit

Parameters

e
Type: System.EventArgs

A System.EventArgs that contains the event data.

The OnInit method notifies the HtmlSelect control to perform any initialization steps that are required to create and set up an instance. If the IsViewStateEnabled property is false and the IsPostBack property is true, then the RequiresDataBinding property is set to true.

Notes to Inheritors:

When overriding the OnInit method in a derived class, be sure to call the base class's OnInit method so that the registered delegates received the event.

.NET Framework
Available since 2.0
Return to top
Show: