HttpHandler -
It is a extension based pre-processor. In other words, pre-processor logic is executed depending on the file extension.
Exp- To check user age should be greater than 18 before viewing the video whose extension is .mp4
HttpModule-
It is event based pre-processor. Asp.net emits a lot of events as request traverses in request pipeline.Some of the event name is HTTPRequest, HttpAuthentication, HttpAuthorise etc. By using HttpModule we write the logic into theses events.The logic will be executed when the event will fire and before the request reaches into IIS.
It is a extension based pre-processor. In other words, pre-processor logic is executed depending on the file extension.
Exp- To check user age should be greater than 18 before viewing the video whose extension is .mp4
HttpModule-
It is event based pre-processor. Asp.net emits a lot of events as request traverses in request pipeline.Some of the event name is HTTPRequest, HttpAuthentication, HttpAuthorise etc. By using HttpModule we write the logic into theses events.The logic will be executed when the event will fire and before the request reaches into IIS.
No comments:
Post a Comment