ASP.NET maps HTTP requests toHttpHandlers. Each HttpHandler enables processing of individual HTTP URLs or groups of URL extensions within an application. HttpHandlers have the same functionality as ISAPI extensions with a much simpler programming model
Ex 1.Default HttpHandler for all ASP.NET pages ->ASP.NET Page Handler (*.aspx) 2.Default HttpHandler for all ASP.NET service pages->ASP.NET Service Handler (*.asmx)
An HttpHandler can be either synchronous or asynchronous. A synchronous handler does not return until it finishes processing the HTTP request for which it is called. An asynchronous handler usually launches a process that can be lengthy, and returns before that process finishes After writing and compiling the code to implement an HttpHandler, you must register the handler using your application's Web.config file.
Above answer was rated as good by the following members: sathin
RE: what is the exact purpose of http handlers and interfaces?
httphandler: does the mapping of incoming URLs. This is the last part of the http request.
Ex: http://servername/project/trace.axd ( The trace.axd file is being requested by the user. The URL checks for httphandler section name in the web.config
Then returns the particular file(trace.axd)
Note: trace.axd of a particular file is stored in the root directory of that application.
RE: what is the exact purpose of http handlers and int...
ASP.NET maps HTTP requests toHttpHandlers. Each HttpHandler enables processing of individual HTTP URLs or groups of URL extensions within an application. HttpHandlers have the same functionality as ISAPI extensions with a much simpler programming model
Ex 1.Default HttpHandler for all ASP.NET pages ->ASP.NET Page Handler (*.aspx) 2.Default HttpHandler for all ASP.NET service pages->ASP.NET Service Handler (*.asmx)
An HttpHandler can be either synchronous or asynchronous. A synchronous handler does not return until it finishes processing the HTTP request for which it is called. An asynchronous handler usually launches a process that can be lengthy and returns before that process finishes After writing and compiling the code to implement an HttpHandler you must register the handler using your application's Web.config file.
RE: what is the exact purpose of http handlers and int...
Handlers are used to process individual endpoint requests. Handlers enable the ASP.NET framework to process individual HTTP URLs or groups of URL extensions within an application. Unlike modules only one handler is used to process a request. All handlers implement the IHttpHandler interface which is located in the System.Web namespace. Handlers are somewhat analogous to Internet Server Application Programming Interface (ISAPI) extensions.