ProcessRequest Method
Collapse the table of content
Expand the table of content

IHttpHandler.ProcessRequest Method (HttpContext)


Enables processing of HTTP Web requests by a custom HttpHandler that implements the IHttpHandler interface.

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)

abstract ProcessRequest : 
        context:HttpContext -> unit


Type: System.Web.HttpContext

An HttpContext object that provides references to the intrinsic server objects (for example, Request, Response, Session, and Server) used to service HTTP requests.

Place your custom HttpHandler code in the ProcessRequest virtual method, as shown in the following example.

The following code example writes four lines of text to the HTTP output stream in response to a client request for a page named handler.aspx. All requests for handler.aspx are serviced by the MyHttpHandler class in the namespace HandlerExample contained in the assembly HandlerTest.dll.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
© 2015 Microsoft