System.Web.UI.WebControls.ObjectDataSourceStatusEventArgs Class

Provides data for the ObjectDataSource.Selected, ObjectDataSource.Inserted, ObjectDataSource.Updated, and ObjectDataSource.Deleted events of the System.Web.UI.WebControls.ObjectDataSource control.

See Also: ObjectDataSourceStatusEventArgs Members

Syntax

public class ObjectDataSourceStatusEventArgs : EventArgs

Remarks

The System.Web.UI.WebControls.ObjectDataSourceStatusEventArgs class is used in the ObjectDataSourceView.OnSelected(ObjectDataSourceStatusEventArgs), ObjectDataSourceView.OnUpdated(ObjectDataSourceStatusEventArgs), ObjectDataSourceView.OnInserted(ObjectDataSourceStatusEventArgs), and ObjectDataSourceView.OnDeleted(ObjectDataSourceStatusEventArgs) methods to provide access to output parameters, return values, and exceptions that are thrown by the method that is called by the System.Web.UI.WebControls.ObjectDataSource control. These are accessed by the ObjectDataSourceStatusEventArgs.OutputParameters, ObjectDataSourceStatusEventArgs.ReturnValue, and ObjectDataSourceStatusEventArgs.Exception properties, respectively. By adding a delegate to handle the ObjectDataSource.Selected, ObjectDataSource.Updated, ObjectDataSource.Inserted, or ObjectDataSource.Deleted events, you can examine this data and perform any additional post processing that is required.

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 lifecycle. The following table lists the events and the associated EventArgs classes and event handler delegates.

ObjectDataSource.ObjectCreating.

Occurs immediately before the instance of the business object is created.

System.Web.UI.WebControls.ObjectDataSourceEventArgs

System.Web.UI.WebControls.ObjectDataSourceObjectEventHandler

ObjectDataSource.ObjectCreated.

Occurs immediately after the instance of the business object is created.

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