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

Web API uses which library for JSON serialization?

564


Define session in asp.net.

557


Describe the difference between inline and code behind - which is best in a?

569


What is meant by web application?

541


Define satellite assemblies.

584






What is httpresponse?

508


How will you maintain versioning in asp.net 2.0?

586


How is my content secured from unauthorized access?

515


Define viewstate in .net?

542


If there are multiple update panels on the page say upd1 and upd2. There is a button placed in upd1. How can you stop upd2 to update when button placed in upd1 is clicked?

566


How do you create a master page?

549


What is an il?

554


What is the typical session identifier?

570


Explain model, view and controller represent in an mvc application? : asp.net mvc

510


What’s the difference between asp.net web forms and asp.net mvc?

545