SqlDataSource.Selecting Event
.NET Framework 3.0
Occurs before a data retrieval operation.
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)
SqlDataSource Members
System.Web.UI.WebControls Namespace
SqlDataSource.Selected Event
OnSelecting
Select
SqlDataSource.SelectParameters Property
Data Source Web Server Controls
SqlDataSource Web Server Control Overview
Introduction to the ASP.NET Page Life Cycle
Assembly: System.Web (in system.web.dll)
'Declaration Public Event Selecting As SqlDataSourceSelectingEventHandler 'Usage Dim instance As SqlDataSource Dim handler As SqlDataSourceSelectingEventHandler AddHandler instance.Selecting, handler
/** @event */ public void add_Selecting (SqlDataSourceSelectingEventHandler value) /** @event */ public void remove_Selecting (SqlDataSourceSelectingEventHandler value)
In JScript, you can handle the events defined by a class, but you cannot define your own.
Not applicable.
Handle the Selecting event to perform additional initialization operations that are specific to your application, to validate the values of parameters, or to change the parameter values before the SqlDataSource control performs the select operation. The select arguments are available from the SqlDataSourceSelectingEventArgs object that is associated with the event.
For more information about handling events, see Consuming Events.
Reference
SqlDataSource ClassSqlDataSource Members
System.Web.UI.WebControls Namespace
SqlDataSource.Selected Event
OnSelecting
Select
SqlDataSource.SelectParameters Property
Other Resources
ASP.NET Data Access OverviewData Source Web Server Controls
SqlDataSource Web Server Control Overview
Introduction to the ASP.NET Page Life Cycle