HttpHanlder Vs HttpModule


1.They are process which run when a request is made by client. Handlers include extension like (.aspx,.ashx).

2.We can implement custom Handler by implementing IHttpHanlder (ProcessRequest and IsReusable method)

Life cycle of HTTPHandler is only till the request is made.

HTTPModule : 

1.They are events which can be used even before page load /request is made to the server. 2.HTTP Module can be used for the entire life cycle of MVC where as HTTPHandler is valid only for handling request.

3.We can implement custom Module by implementing IHTTPModule(Init and Dispose Methods)



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s