System.Web.UI.WebControls.SqlDataSource.Selecting Event

Occurs before a data retrieval operation.


public event SqlDataSourceSelectingEventHandler Selecting


Handle the SqlDataSource.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 System.Web.UI.WebControls.SqlDataSource control performs the select operation. The select arguments are available from the System.Web.UI.WebControls.SqlDataSourceSelectingEventArgs object that is associated with the event.

For more information about handling events, see Consuming Events.


Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions:
Since: .NET 2.0