Name

Request

Synopsis

HttpRequest = Context.Request

Returns the HttpRequest object for the current request.

Parameters

HttpRequest

An HttpRequest variable to receive the current HttpRequest object.

Notes

This property is provided for applications other than ASP.NET pages (where the Page.Request property is normally used to retrieve the HttpRequest object). Code that does not have access to the properties of the Page class includes HttpHandlers and HttpModules, as well as event handlers in global.asax.

Get ASP.NET in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.