System.Web.UI.HtmlControls.HtmlSelect.OnInit Method

Raises the System.Web.UI.Control.Init event for the System.Web.UI.HtmlControls.HtmlSelect control.

Syntax

protected override void OnInit (EventArgs e)

Parameters

e
A EventArgs that contains the event data.

Remarks

The HtmlSelect.OnInit(EventArgs) method notifies the System.Web.UI.HtmlControls.HtmlSelect control to perform any initialization steps that are required to create and set up an instance. If the System.Web.UI.Control.IsViewStateEnabled property is false and the System.Web.UI.Page.IsPostBack property is true, then the HtmlSelect.RequiresDataBinding property is set to true.

Requirements

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