what is the exact purpose of http handlers and interfaces?

Answer Posted / ravikrishna

ASP.NET maps HTTP requests to HttpHandlers. 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.

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is viewstate? What does the “enableviewstate” property do?

706


Any disadvantages in Dataset and in reflection ?

2994


How do u declare static variable and how it is declared and what is its lifetime?

725


What is the difference between mvc and asp.net? : Asp.Net MVC

669


List the events in page life cycle.

716


What are the different types of cookies in asp.net?

737


What is an example of an application service provider?

638


For which does this Codebehind="MyCode.aspx.cs" is relevent to ?

791


What are the types of caching in asp.net?

750


Define xmlreader class.

745


Explain the difference between value type and reference type?

431


What methods are fired during the page load? Init()

714


What is the life cycle of web page?

716


Explain Life cycle of ASP.NET page when a request is made.

931


Diff between web user control and web custom control?

716