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.Net.WebRequestManager Class

Manages the flow of the Web requests issued by the Sys.Net.WebRequest object to the associated executor object.

Namespace: Sys.Net

Inherits: None

Syntax

Sys.Net.WebRequestManager.memberName;

Members

Name

Description

add_completedRequest Method

Registers a handler for the completed request event of the WebRequestManager.

add_invokingRequest Method

Registers a handler for the invoking request event of the WebRequestManager.

remove_completedRequest Method

Removes the event handler set by the add_completedRequest method.

remove_invokingRequest Method

Removes the event handler set by the add_invokingRequest method.

executeRequest Method

Executes the specified Web request.

defaultExecutor Property

Gets or sets the default executor for the Web request.

defaultTimeout Property

Gets or sets the default time-out for the Web request.

Remarks

The default executor associated with a WebRequest object is an instance of the XmlHttpExecutor class. The executor is responsible for making the actual network requests.

The WebRequestManager class defines the default behavior for all Web requests so that you do not have to specify low-level network configuration settings for each request.

Each page contains only one WebRequestManager instance. However, you might have several instances of the WebRequest class and related executor.

Example

The following example shows how to use the WebRequestManager class to set common properties and to execute a Web request.