HtmlSelect.OnLoad Method
Assembly: System.Web (in system.web.dll)
| Exception type | Condition |
|---|---|
| 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. |
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 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.