What Is A. ashx file?

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.