HttpContext.Handler Property

Definition

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

C#
public System.Web.IHttpHandler Handler { get; set; }

Property Value

An IHttpHandler responsible for processing the HTTP request.

Remarks

The Handler property contains a reference to the handler that processes the HTTP request. The handler can be specified by using the httpHandlers element, or by using a custom handler defined in user code. For more information about handlers, see HTTP Handlers and HTTP Modules Overview.

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.

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also