This documentation is archived and is not being maintained.

HttpContext.Handler Property

Gets or sets the IHttpHandler object responsible for processing the HTTP request.

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

public IHttpHandler Handler { get; set; }
/** @property */
public IHttpHandler get_Handler ()

/** @property */
public void set_Handler (IHttpHandler value)

public function get Handler () : IHttpHandler

public function set Handler (value : IHttpHandler)

Not applicable.

Property Value

An IHttpHandler responsible for processing the HTTP request.

The Handler property contains a reference to the handler that processes the HTTP request. The handler can be specified by using the httpHandlers Element (ASP.NET Settings Schema), or by using a custom handler defined in user code. For more information about handlers, see Introduction to HTTP Handlers.

The reference to the Handler property will remain the same even after the current page has been changed by a server-side method, such as the Execute method or the Transfer method.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0