System.Web
2.0.0.0
System.Web.UI.WebControls.SqlDataSourceCommandEventArgs
By adding an event handler delegate to handle the event, you can perform any additional preprocessing required or cancel the database query entirely. Because the class is derived from the class, you can cancel a pending database query by setting the property to true. You can examine and manipulate the , collection, and other database query properties prior to running the query by accessing the object exposed by the property. You can also examine the object that is passed to the method by accessing the property.
The class is used in the method to provide access to a database query before it is run.
The control exposes many events that you can handle to work with the underlying data objects during the course of a data operation. The following table lists the events and associated classes and event handler delegates.
-
Event
EventArgs
EventHandler
-
.
Occurs before the data is retrieved.
-
, , and .
Occur before an insert, update, or delete operation is performed.
-
, , , and .
Occur after the data retrieval, insert, update, or delete operation completes.
Provides data for the event of the control.
Constructor
To be added.
The parameter is an collection of name/value pairs that match those in the method signature and are passed by reference.
Initializes a new instance of the class, using the specified object and any passed to the method.
An object that represents the cancelable query.
2.0.0.0
Property
System.Web.UI.DataSourceSelectArguments
To be added.
You can examine the object to determine whether sorting, paging, or a row count are requested as part of the data retrieval operation.
Data-bound controls use the class to request that the perform additional data-related operations on a result set, such as sorting the data or returning a specific subset of data. These data-related operations are enumerated by the enumeration. For more information, see .
Gets the object passed to the method.
2.0.0.0