Recently studied vs 05
I found that many new things have been added. The first is the. ashx file.
The. ashx file is similar to the. aspx file. You can use it to call the httphandler class. It removes the need for normal. ASPX page control parsing and page processing .. The ashx file is suitable for generating data formats that are used by browsers for processing and do not require sending back. For example, it is used to generate dynamic images, dynamic text, and other content.
The following link shows how to generate an ashx handler routine in Asp.net:
Http://www.aspcode.net/articles/l_en-US/t_default/ASP.NET/Creating-an-ASHX-handler-in-ASP.NET_article_275.aspx
Let's take a look.
First, Asp.net maps HTTP requests to HTTP Based on file extensionsProgramFor example, the page handler (. aspx ).
Then, both. aspx and. ashx will be mapped to the program that processes the HTTP request.
Finally ,. the special feature of ashx is to avoid the process of control parsing and page processing. It is suitable for transmission of dynamically generated content in the program without the need to save the content as a webpage file first, call it again to avoid generating unnecessary temporary files on the server.
In addition, ASP. net1.1 supports. ashx.
You can refer to the following link to create a. ashx file.
[Debugging an HTTP handler (*. ashx) in ASP. NET 2.0]
Http://www.15seconds.com/issue/060406.htm