Handlers and modules helps you inject Pre-Processing logic before the ASP.NET request reaches the website.For instance before your request reaches any resource you would like to check if the user has been authenticated or not.
Httphandler is an extension based processor.In other words the pre-processing logic is invoked depending on file extensions.
Httpmodule is an event based processor. In other words ASP.NET emits lot of event like BeginRequest, AuthenticateRequest etc, we can write logic in those events using Httpmodule.
No comments:
Post a Comment