System.Web.UI.WebControls.ObjectDataSourceSelectingEventArgs Class

Provides data for the ObjectDataSource.Selecting event of the System.Web.UI.WebControls.ObjectDataSource control.

See Also: ObjectDataSourceSelectingEventArgs Members

Syntax

public class ObjectDataSourceSelectingEventArgs : ObjectDataSourceMethodEventArgs

Remarks

The System.Web.UI.WebControls.ObjectDataSourceSelectingEventArgs class is used in the ObjectDataSourceView.OnSelecting(ObjectDataSourceSelectingEventArgs) method. Because it is derived from the System.Web.UI.WebControls.ObjectDataSourceMethodEventArgs class, the System.Web.UI.WebControls.ObjectDataSourceSelectingEventArgs class provides access to input parameters for validation and manipulation through the ObjectDataSourceMethodEventArgs.InputParameters property. The System.Web.UI.WebControls.ObjectDataSourceSelectingEventArgs class also provides the ObjectDataSourceSelectingEventArgs.ExecutingSelectCount property, which is used to check whether the currently executing data retrieval operation is retrieving a row count, in addition to the data. This is important because when data source paging is enabled, the ObjectDataSource.Selecting event is raised twice. For more information, see ObjectDataSourceSelectingEventArgs.ExecutingSelectCount.

The System.Web.UI.WebControls.ObjectDataSource control exposes many events that you can handle to work with the underlying business object at various times in its life cycle. The following table lists the events and associated EventArgs classes and event handler delegates.

ObjectDataSource.ObjectCreating.

Occurs immediately before the business object is instantiated.

System.Web.UI.WebControls.ObjectDataSourceEventArgs

System.Web.UI.WebControls.ObjectDataSourceObjectEventHandler

ObjectDataSource.ObjectCreated.

Occurs immediately after the business object is instantiated.

System.Web.UI.WebControls.ObjectDataSourceEventArgs

System.Web.UI.WebControls.ObjectDataSourceObjectEventHandler

ObjectDataSource.Selecting.

Occurs before the data is retrieved.

System.Web.UI.WebControls.ObjectDataSourceSelectingEventArgs

System.Web.UI.WebControls.ObjectDataSourceSelectingEventHandler

ObjectDataSource.Inserting, ObjectDataSource.Updating, and ObjectDataSource.Deleting.

Occur before an insert, update, or delete operation is performed.

System.Web.UI.WebControls.ObjectDataSourceMethodEventArgs

System.Web.UI.WebControls.ObjectDataSourceMethodEventHandler

ObjectDataSource.Selected.

Occurs after the data is retrieved.

System.Web.UI.WebControls.ObjectDataSourceStatusEventArgs

System.Web.UI.WebControls.ObjectDataSourceStatusEventHandler

ObjectDataSource.Inserted, ObjectDataSource.Updated, and ObjectDataSource.Deleted.

Occur after the insert, update, or delete operation is completed.

System.Web.UI.WebControls.ObjectDataSourceStatusEventArgs

System.Web.UI.WebControls.ObjectDataSourceStatusEventHandler

ObjectDataSource.ObjectDisposing.

Occurs before a business object is destroyed.

System.Web.UI.WebControls.ObjectDataSourceDisposingEventArgs

System.Web.UI.WebControls.ObjectDataSourceDisposingEventHandler

Requirements

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