a7drew
a7drew

Reputation: 7811

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

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?

Upvotes: 3

Views: 1621

Answers (2)

Frank Krueger
Frank Krueger

Reputation: 71053

Out in "the wild", .ashx are definitely the most popular extension.

Upvotes: 0

a7drew
a7drew

Reputation: 7811

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

Upvotes: 3

Related Questions