Ad

When Building A Handler, Should It Be .ashx Or .axd?

- 1 answer

Say I'm building an ASP.Net class that inherits from IHttpHandler, should I wire this up to a URL ending in .ashx, or should I use the .axd extension?

Does it matter as long as there's no naming conflict?

Ad

Answer

Ahh.. ScottGu says it doesn't matter, but .ashx is slightly better because there's less chance of a conflict with things like trace.axd and others. That's why the flag went up in my head that .ashx might be better.

http://forums.asp.net/t/964074.aspx

Ad
source: stackoverflow.com
Ad