SqlDataSource.Selecting 事件

定义

执行数据检索操作前发生。Occurs before a data retrieval operation.

public:
 event System::Web::UI::WebControls::SqlDataSourceSelectingEventHandler ^ Selecting;
public event System.Web.UI.WebControls.SqlDataSourceSelectingEventHandler Selecting;
member this.Selecting : System.Web.UI.WebControls.SqlDataSourceSelectingEventHandler 
Public Custom Event Selecting As SqlDataSourceSelectingEventHandler 

注解

处理事件以执行其他特定于应用程序的初始化操作, 验证参数的值, 或者在SqlDataSource控件执行选择操作之前更改参数值。 SelectingHandle 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. 可以从与事件关联的SqlDataSourceSelectingEventArgs对象中使用 select 自变量。The select arguments are available from the SqlDataSourceSelectingEventArgs object that is associated with the event.

有关如何处理事件的详细信息, 请参阅处理和引发事件For more information about how to handle events, see Handling and Raising Events.

适用于

另请参阅