System.Web.UI.WebControls.FormViewInsertedEventArgs.Exception Property

Gets the exception (if any) that was raised during the insert operation.

Syntax

public Exception Exception { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the FormViewInsertedEventArgs.Exception property to determine the exception (if any) that was raised during the insert operation. If no exceptions were raised, this property returns null.

Note:

If an exception was raised and you decide to handle the exception in the event handler, be sure to set the FormViewInsertedEventArgs.ExceptionHandled property to true; otherwise, the System.Web.UI.WebControls.FormView control re-throws the exception.

Requirements

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