System.Web.UI.WebControls.SqlDataSourceStatusEventArgs.ExceptionHandled Property

Gets or sets a value indicating whether an exception thrown by the database has been handled.

Syntax

public bool ExceptionHandled { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

If the database throws an exception, the SqlDataSourceStatusEventArgs.ExceptionHandled property is set to false and the exception is wrapped by the SqlDataSourceStatusEventArgs.Exception property. If you use an System.Web.UI.WebControls.SqlDataSourceStatusEventHandler, you can check the ObjectDataSourceStatusEventArgs.Exception property and handle the exception. If you handle the exception, set the SqlDataSourceStatusEventArgs.ExceptionHandled property to true or the System.Web.UI.WebControls.SqlDataSource control will throw an exception.

Requirements

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