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.


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


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


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


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