HtmlSelect.OnLoad Method

Raises the Load event for the HtmlSelect control.

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

protected public:
virtual void OnLoad (
	EventArgs^ e
) override
protected void OnLoad (
	EventArgs e
)
protected internal override function OnLoad (
	e : EventArgs
)
Not applicable.

Parameters

e

A System.EventArgs that contains the event data.

Exception typeCondition

HttpException

The ID specified in the DataSourceID property cannot be found.

- or -

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

InvalidOperationException

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.

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.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show: