Documentation for: ASP.NET Ajax Version 1.0

This documentation is for a previous version. For the current released version, see the ASP.NET Ajax documentation on MSDN.








Sys.WebForms.EndRequestEventArgs Class

Used by the endRequest event of the Sys.WebForms.PageRequestManager class to pass argument information to event handlers. The endRequest event is raised just after the postback request has finished processing.

Namespace: Sys.WebForms

Inherits: Sys.EventArgs


new Sys.WebForms.EndRequestEventArgs();




EndRequestEventArgs Constructor

Initializes a new instance of the EndRequestEventArgs class.


Member name


dataItems Property

Gets a JSON data structure that contains data items that were registered by using the RegisterDataItem method of the ScriptManager class.

error Property

Gets the Error Object object.

errorHandled Property

Get or sets a value that indicates whether the error has been handled.

response Property

Gets a response object that is represented by the WebRequestExecutor class.


This class contains private members that support the client-script infrastructure and are not intended to be used directly from your code. Names of private members begin with an underscore ( _ ).


An EndRequestEventArgs object is returned as a parameter in an event handler. You can use its error property to determine whether an error occurred and to obtain details about the error. You can also use the errorHandled property to determine whether the error has already been handled and to indicate that you have handled the error.


The following example shows how to use two properties of the EndRequestEventArgs class. A Click event handler for a button in an UpdatePanel control throws an ArgumentException exception to simulate an unhandled exception. In the client script, a handler for the endRequest event of the PageRequestManager class checks the error property value. If the error is an unhandled server exception, the script sets the errorHandled property to true and displays an error message.