HtmlSelect::OnLoad Method
Raises the Load event for the HtmlSelect control.
Assembly: System.Web (in System.Web.dll)
Parameters
- e
- Type: System::EventArgs
A System::EventArgs that contains the event data.
| Exception | Condition |
|---|---|
| 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 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.