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 

事件類型

SqlDataSourceSelectingEventHandler

備註

處理 Selecting 事件,以執行應用程式特定的其他初始化作業、驗證參數的值,或在控制項執行選取作業之前變更參數值 SqlDataSourceHandle 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 與事件相關聯的物件中取得。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.

適用於

另請參閱