Hemant Kumar
Hemant Kumar

Reputation: 4611

Could any one explain me about the usage of HttpHandlers and Generic Handlers in Asp.Net?

I have a bit confusion about the Http Handlers,Generic Handlers and the usage of those two.Could any explain me ?

Upvotes: 0

Views: 251

Answers (1)

turtlepick
turtlepick

Reputation: 2714

The Generic Handler is a ashx file. You can basically make it return anything (image, json, html, etc.).

The Http Handler would be a class library that you can distribute and can be deployed by changing the web.config. The purpose would be the same as the Generic Handler.

I guess they accomplish the same thing. It's mostly a matter of how you intend to implement (a file in your web.project vs. class library) and distribute it.

Upvotes: 1

Related Questions