Last post Apr 02, 2014 02:49 AM by Shawn - MSFT
Mar 31, 2014 11:08 PM|Ericzh|LINK
What's the difference between Generic Handler(.ashx) and Asp.net Handler(.cs) when you create your own handler in your asp.net project?
Mar 31, 2014 11:13 PM|BrockAllen|LINK
None other than packaging -- the .ashx can be compiled on-demand like an .aspx, whereas a .cs file must be compiled into an assembly then configured in the <handlers> section in web.config.
Apr 02, 2014 02:49 AM|Shawn - MSFT|LINK
Here is the difference between Generic Handler(.ashx) and Asp.net Handler:
As per MSDN Generic Handler is a default handler which will have @webhandler directive and has .ashx extension this generic handler is not having UI but it provides response when ever any request made to this handler.
HTTP Handler is a process which runs and continue to server request and give response based on the request handling code. This handler does not have UI and need to configured in the web.config against extensions. One of the great example of Http Handler
is page handler of ASP.NET which serves .aspx pages request.
Following is a main differences between http handler and generic handler.
For more information, you could refer to: