What are Http handler ?

Answer Posted / alb.shah

An ASP.NET HTTP handler is the process (frequently referred
to as the "endpoint") that runs in response to a request
made to an ASP.NET Web application. The most common handler
is an ASP.NET page handler that processes .aspx files. When
users request an .aspx file, the request is processed by
the page via the page handler.
To create a custom HTTP handler, you create a class that
implements the IHttpHandler interface to create a
synchronous handler or the IHttpAsyncHandler to create an
asynchronous handler. Both handler interfaces require you
to implement the IsReusable property and the ProcessRequest
method. The IsReusable property specifies whether the
IHttpHandlerFactory object (the object that actually calls
the appropriate handler) can place your handlers in a pool
and reuse them to increase performance, or whether it must
create new instances every time the handler is needed. The
ProcessRequest method is responsible for actually
processing the individual HTTP requests.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what does wsdl stand for?

725


Define authentication and authorization.

828


What is css in asp.net?

757


What is the displayafter property in updateprogress control?

722


Which method is used to perform all validation at the page level?

721


What is difference between Server.Transfer and Response.Redirect in ASP.NET?

778


What is the difference between abstract class vs interface? Can give me the real time examples?

687


Which method has beenintroduced in asp.net 4.0 to redirect a page permanently?

733


What is the used of "ispostback" property?

776


Describe briefly what is the role of IIS on an ASP.NET application? What does it for the same application?

805


How does http session work?

714


How to prepare culture-specific formatting in .net.

734


Explain the difference between codebehind="mycode.aspx.cs" and src="mycode.aspx.cs"?

724


Explain what is event bubbling?

771


What are main return types supported in Web API?

981