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