Provides data for the ObjectDataSource.Selecting event of the System.Web.UI.WebControls.ObjectDataSource control.
See Also: ObjectDataSourceSelectingEventArgs Members
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.