My rough understanding of HTTP handler in ASP. NET

Source: Internet
Author: User

In ASP. net, when the client requests An ASPX page, that is, when a GET/POST request is sent to the server, the IIS server uses a series of steps to parse the request step by step, finally, the class of the requested aspx will be located, and the class will be parsed into HTML content and sent back to the client. When we use this path, the model server of aspx-related control processing has a set of established processes. To facilitate our customization of this processing process, Asp. NET provides a method for directly processing HTTP requests, that is, using the HTTP handler class. In simple terms, it is a ashx page. In vs IDE, it is called generic handler.

 

We can directly request an ashx page, and the server can accept and process it. You only need to enter the file name in the address bar of the browser. This is the same as the normal ASPX page.

 

Especially when Ajax is used for asynchronous processing of requests, the method of ashx is more straightforward and less troublesome to deal. This probably seems to be the meaning of its existence.

Related Article

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.