HttpContext Object (Context Intrinsic Control)

The HttpContext provides access to the HTTP-specific context used by the web server to process web requests. See Table B.1 and B.2 for the HttpContext class properties and methods.

Table B.1. HttpContext Class Properties
Property Description
AllErrors An array (collection) of errors accumulated while processing a request.
Application Retrieves a reference to the application object for the current HTTP request.
ApplicationInstance Retrieves a reference to the application object for the current HTTP request.
Cache Gets a reference to the Cache object for the current request.
Error Gets the first error during request processing.
Handler Retrieves or assigns a reference to the HttpHandler object for ...

Get Inside ASP.NET 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.