asp.net.ph

IHttpHandler Interface

System.Web Namespace


Defines the contract that ASP.NET implements to synchronously process HTTP Web requests using custom HTTP handlers.

IHttpHandler Interface Members

Collapse   Properties

Visibility Name Value Type Accessibility
public IsReusable Boolean [ Get ]

Collapse   Methods

Visibility Name Parameters Return Type
public ProcessRequest ( HttpContext context ) Void

Classes that Implement IHttpHandler


Class Description
HttpApplication Defines the methods, properties, and events common to all application objects within an ASP.NET application. This class is the base class for applications defined by the user in the global.asax file.
HttpRemotingHandler Implements an ASP.NET handler that forwards requests to the remoting HTTP channel.
Page Represents an .aspx file requested from a server that hosts an ASP.NET Web application.

Remarks

You can write custom HTTP handlers to process specific, predefined types of HTTP requests in any Common Language Specification ( CLS ) compliant language. Executable code defined in the HttpHandler classes, rather than conventional ASP or ASP.NET Web pages, responds to these specific requests. HTTP handlers give you a means of interacting with the low-level request and response services of the IIS Web server and provide functionality much like ISAPI extensions but with a simpler programming model.

If your handler will access session state values, it must implement the IRequiresSessionState interface ( a marker interface with no methods ).

Syntax


To call a method:

IHttpHandler.methodName ( arguments );
  C# VB

To return the value of a property:

Type var = IHttpHandler.propertyName;
  C# VB

Skip Navigation Links



Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph