What is Http handler?

Answer Posted / sanjay

The main purpose of HttpHandler is to serve all asp.net web request. For e.g. Creating web Page object -> creating server control object -> loading server control object -> rendering HTML content.

We can create our own custom HttpHandler by just inheriting IHttpHandler and using method ProcessRequest(){} and is Reusable.

we can define our own page extention e.g. simple.text
and using custom HttpHandler we can call this on url.

http://localhost/simple.text

but we have to register this custom HttpHandler in web.config

Is This Answer Correct ?    3 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is ispostback method in asp.net?

738


How do I know asp.net mvc version? : Asp.Net MVC

716


How many types of validators are there in asp net?

682


What does occur first in ASP.Net, Authentication or Authorization?

762


What setting must be added in the configuration file to deny a particular user from accessing the secured resources?

711


What are the validation controls available in ASP.NET?

715


What is the use of HttpHandlers? When to use this?

816


Give 2 examples for scenarios when routing is not applied?

785


When you use Ajax controls in the ASP.NET application?

773


Define static constructor?

732


Differentiate between early binding and late binding.

768


Where sessions are stored in asp.net?

726


What is a viewstate?

744


Describe a bubbled event and how it is used ?

832


How to disable disable browser's Back button in asp.net (JavaScript)?

796