Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between axd and ashx handlers

Tags:

asp.net

What is the Difference betweeen axd and ashx handlers.

like image 767
Santhosh Avatar asked Mar 01 '10 10:03

Santhosh


3 Answers

The primary difference is axd handlers are used to download resources embedded in an assembly. so it is mostly used by control developers. On the other hand, ashx are generic handlers that process request. It is used mostly by asp.net developers.

The axd handler comes with asp.net 2.0.

See this entry and this for more information.

like image 180
Adeel Avatar answered Oct 06 '22 01:10

Adeel


In general, the ASP.NET uses .axd extension for Web Resources and usesAssemblyResourceLoaderto handle it. But .ashx files that called Generic Handler is useful when you want to create an HttpHandler.

like image 37
Mehdi Golchin Avatar answered Oct 06 '22 01:10

Mehdi Golchin


Technically, they're identical, they're both meant for HTTP handlers, i.e. code that implements IHttpHandler. But axd are implemented by ASP.NET itself and ashx are for you.

It is a convention, you could write an axd handler.

like image 32
Timores Avatar answered Oct 05 '22 23:10

Timores