Name
Response
Synopsis
HttpResponse = Context.Response
Returns the HttpResponse object for the current request.
Parameters
-
HttpResponse
An HttpResponse variable to receive the current HttpResponse object.
Notes
This property is provided for applications other than ASP.NET pages
(where the Page.Response property is normally used to retrieve the
HttpResponse object). Code that does not have access to the
properties of the Page
class includes HttpHandlers
and HttpModules, as well as global.asax
. One
common reason for using Context.Response is to write cookies in an
HttpModule.
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.