What is HTTP MODULE & HTTP HANDLERS in ASP.NET? How a
developer can utilize in the application? Please provide
example.
Answer Posted / answerme
An ASP.NET HTTP handler is the process that runs when any
request is 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 through the page
handler. You can create your own HTTP handlers that render
custom output to the browser.
An HTTP module is an assembly that is called on every
request that is made to your application. HTTP modules are
called as part of the ASP.NET request pipeline and have
access to life-cycle events throughout the request. HTTP
modules let you examine incoming and outgoing requests and
take action based on the request.
For HTTP Handler implementation (Synchronous):
http://msdn.microsoft.com/en-us/library/ms228090.aspx
For Registering HTTP Handler:
http://msdn.microsoft.com/en-us/library/46c5ddfy.aspx
For Configuring HTT handler:
http://msdn.microsoft.com/en-us/library/bb515343.aspx
For HTTP module implementation :
http://msdn.microsoft.com/en-us/library/ms227673.aspx
| Is This Answer Correct ? | 12 Yes | 2 No |
Post New Answer View All Answers
How can I open ashx file in mobile?
Explain the difference between inline and code behind - which is best in?
Which namespace is used by ado.net?
What is the web.config file in asp?
What is bson in web api?
I have created a configuration setting in my web.config and have kept it at the root level. How do I prevent it from being overridden by another web.config that appears lower in the hierarchy?
How may clustered index we can create in table?
What is state management in .net?
What does aspcompat="true" mean?
What’s the catch?
Can you edit data in the Repeater control? Which template must you provide, in order to display data in a Repeater control? How can you provide an alternating color scheme in a Repeater control? What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeater control?
Explain the steps to be followed to use passport authentication.
What is the maximum timeout we can set for Cookies?
Explain the difference between response.redirect vs server.transfer
How to count the number of objects present in a web page? How to count the number of radio buttons in a web page?