Context Property

Page.Context Property

Gets the HttpContext object associated with the page.

[Visual Basic]
Overrides Protected ReadOnly Property Context As HttpContext
protected override HttpContext Context {get;}
protected: __property HttpContext* get_Context();
protected override function get Context() : HttpContext;

Property Value

An HttpContext object that contains information associated with the current page.


This property provides programmatic access to the context the page runs in, including information about the request, response, session and application.


Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

Page Class | Page Members | System.Web.UI Namespace | HttpContext

© 2015 Microsoft