GridViewUpdatedEventArgs::ExceptionHandled Property

 

Gets or sets a value that indicates whether an exception that was raised during the update operation was handled in the event handler.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public:
property bool ExceptionHandled {
	bool get();
	void set(bool value);
}

Property Value

Type: System::Boolean

true if the exception was handled in the event handler; otherwise, false. The default is false.

When an exception is raised during the update operation, use the ExceptionHandled property to indicate whether you handled the exception in the event handler. When this property is set to true, the exception is considered handled and is not thrown again by the GridView control. If this property is set to false, the exception is thrown again. To determine which exception was raised, use the Exception property.

The following example shows how to indicate that the exception was handled in the event handler.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: