Bewerken

Delen via


HtmlSelect.OnLoad(EventArgs) Method

Definition

Raises the Load event for the HtmlSelect control.

protected public:
 override void OnLoad(EventArgs ^ e);
protected internal override void OnLoad (EventArgs e);
override this.OnLoad : EventArgs -> unit
Protected Friend Overrides Sub OnLoad (e As EventArgs)

Parameters

e
EventArgs

A EventArgs that contains the event data.

Exceptions

The ID specified in the DataSourceID property cannot be found.

-or-

The control specified in the DataSourceID property is not of the type IDataSource.

The data source cannot be resolved because a value is specified for both the DataSource property and the DataSourceID property.

-or-

The requested DataMember property could not be found.

Remarks

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

Applies to

See also