System.Web.HttpRequest Class

Enables ASP.NET to read the HTTP values sent by a client during a Web request.

See Also: HttpRequest Members

Syntax

public sealed class HttpRequest

Remarks

The methods and properties of the System.Web.HttpRequest class are exposed through the Request properties of the System.Web.HttpApplication, System.Web.HttpContext, System.Web.UI.Page, and System.Web.UI.UserControl classes.

To access data from the HttpRequest.QueryString, HttpRequest.Form, HttpRequest.Cookies, or HttpRequest.ServerVariables collections, you can write Request["key"], as shown in the example for the HttpRequest.QueryString property.

Note:

Unicode support for System.Web.HttpRequest class members requires IIS version 6.0 or later.

Requirements

Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0