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.WebRequest webRequest Constructor

Initializes a new instance of the Sys.Net.WebRequest class.

Syntax

var request = new Sys.Net.WebRequest();

Remarks

You must always construct an instance of the WebRequest class before you use it.

Example

The following example shows how to instantiate a Web request. This code is part of a complete example found in the WebRequest overview.

javascript

// Instantiate the WebRequest object.
var wRequest =  new Sys.Net.WebRequest();