HttpModules and HttpHandlers

Posted by Bravi under ASP.NET on 6/18/2012 | Points: 10 | Views : 9060 | Status : [Member] | Replies : 5
Could you please any one explain about HttpModules and HttpHandlers and what is use.




Responses

Posted by: Sivakumar.S on: 6/18/2012 [Member] Starter | Points: 25

Up
0
Down
Hi,

Please find my explanation

HttpHandlers: Http Handlers are extension based preprocessing logic based on page request.

HttpModules: Http Modules are events based preprocessing logic. BeginRequest, AuthenticateRequest, AuthorizeRequest,
PreRequestHandlerExecute, PostRequestHandlerExecute, EndRequest are the events in Http Modules before the asp.net page load.

In general asp.net page life cycle, initially Http Modules and Http Handlers are load, after that only asp.net page will load in following sequence.

Page_init

Page_Load

Page_validate

Page_Events

Page_Render


This is the use of Http Handlers and Http Modules and procedure for asp.net page life cycle.

siva

Bravi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Rajkatie on: 6/18/2012 [Member] [MVP] Gold | Points: 25

Up
0
Down
An ASP.NET HTTP handler is last stop for incoming HTTP requests and are ultimately the point in the request-processing pipeline that is responsible for serving up the requested content. In-built http handler in .net framework . It can be async and called based upon file extension (e.g trace.axd for tracing web request)


An HTTP module is an assembly that is called on every and every request independent of file extension.
.Net framework perform following functionality using in-built http module.
1)OutputCache
2)Session
3)WindowsAuthentication
4)RoleManager
5)FileAuthorization
6)AnonymousIdentification
7)Profile
8)UrlAuthorization

Rajesh Patel
.Net Trainer(MSCD | MCT | MS)
Brainbench (Asp.Net 4.5 and C# 5.0)

Bravi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: CGN007 on: 6/18/2012 [Member] Silver | Points: 25

Up
0
Down
Here it is,Excellent article By Sivprasad Koirala http://www.codeproject.com/Articles/30907/The-Two-Interceptors-HttpModule-and-HttpHandlers


Bravi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: CGN007 on: 6/18/2012 [Member] Silver | Points: 25
Posted by: CGN007 on: 6/23/2012 [Member] Silver | Points: 25

Up
0
Down
Mark as Answer if its helpful to you,that motivates...

Bravi, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response