What are HttpHandlers and HttpModules in ASP.NET?

 Posted by Sojanya on 6/26/2015 | Category: ASP.NET Interview questions | Views: 2495 | Points: 40
Answer:

HttpHandler : ASP.NET uses HttpHandlers to handle specific requests on the basis of it's extensions. ASP.NET Page Handler handles all requests coming for (.aspx) pages. Similarly, we can create our own HttpHandler also to handle a specific request with a specific extension for images, javascript, css etc.

Note : Only one handler can be there for a one extension.


HttpModule : ASP.NET uses HttpModules to add some specific functionality along with ASP.NET default functionality for all incoming requests regardless of its extensions. It can be used to URL re-writing and some other security related implementations.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response

More Interview Questions by Sojanya