Class EndRequestEventArgs

Used by the endRequest event of the PageRequestManager class to pass argument information to event handlers.

see

{@link http://msdn.microsoft.com/en-us/library/bb397499.aspx}

Hierarchy

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(error: Error, dataItems: any, response: WebRequestExecutor): EndRequestEventArgs

Initializes a new instance of the EndRequestEventArgs class.

Parameters

  • error: Error
          An error object.
    
  • dataItems: any
          An object containing data items.
    
  • response: WebRequestExecutor
          An object of type Sys.Net.WebRequestExecutor.
    

Returns

EndRequestEventArgs

Properties

public Empty: EventArgs

An object of type EventArgs that is used as a convenient way to specify an empty EventArgs instance.

Methods

public get_dataItems(): any

Gets a JSON data structure that contains data items that were registered by using the RegisterDataItem method of the ScriptManager class. The JavaScript Error object exposes several properties that define the error. The Microsoft Ajax Library provides additional functions for the Error object.

Returns

any

A JSON data structure that contains name/value pairs that were registered as data items by using the RegisterDataItem method of the ScriptManager class.

public get_error(): Error

Gets the Error object.

Returns

Error

A base ECMAScript (JavaScript) Error object.

public get_errorHandled(): boolean

Get or sets a value that indicates whether the error has been handled. Use this property to determine whether an asynchronous postback error has already been handled. If it has not and if you want to take action on the error, you can set the error as handled.

Returns

boolean

true if the error has been handled; otherwise false.

public get_response(): WebRequestExecutor

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

Returns

WebRequestExecutor

A response object that is represented by the WebRequestExecutor class.

public set_errorHandled(value: boolean)

Get or sets a value that indicates whether the error has been handled. Use this property to determine whether an asynchronous postback error has already been handled. If it has not and if you want to take action on the error, you can set the error as handled.

Parameters

  • value: boolean
        true or false.