System.Web.UI.HtmlControls.HtmlSelect.OnLoad Method

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

Syntax

protected override void OnLoad (EventArgs e)

Parameters

e
A EventArgs that contains the event data.

Remarks

The HtmlSelect.OnLoad(EventArgs) method notifies the System.Web.UI.HtmlControls.HtmlSelect control that it should perform actions common to each HTTP request for the page it is associated with. The HtmlSelect.OnLoad(EventArgs) method connects the System.Web.UI.HtmlControls.HtmlSelect control to the appropriate data source specified in either the HtmlSelect.DataSource property or the HtmlSelect.DataSourceID property. If the HtmlSelect.DataSourceID property is to specify the data source control that the System.Web.UI.HtmlControls.HtmlSelect control should use to retrieve its data source, then the HtmlSelect.OnDataSourceViewChanged(object, EventArgs) method is set as the event handler.

Requirements

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