Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When building a Handler, should it be .ashx or .axd?

Tags:

asp.net

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?

like image 235
a7drew Avatar asked Dec 15 '25 21:12

a7drew


1 Answers

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

like image 115
a7drew Avatar answered Dec 19 '25 04:12

a7drew