Flow control capability in ASP3.0 (1)

Source: Internet
Author: User
asp3| control of flow control in ASP3.0
2000-11-20 · Xuankong Yesky

With the introduction of PHP4.0 and JSP technology and the significant security issues that continue to occur in IIS, Microsoft's ASP market seems to be narrowing, but Microsoft will not give up, so on the basis of ASP2.0 launched the ASP3.0, added some new features: new flow control capabilities , Data shaping Technology (refer to: http://www.aspcn.com/showarticle.asp?id=28), Script-free ASP, more component selection, XML support, scripting components, encryption Techniques for ASP scripting code, and so on. In fact, I think that there is not much change, or I know about ASP3.0 is too little (in fact, I think Microsoft may give up the ASP, but the eyes turned to the "asp+", asp+ is still in the testing phase, but the author from a number of foreign sites to see, hehe, Our next thing on the win platform may be asp+, so ASP3.0 has not changed much, but then, for those users who use the win system platform, I suggest that you use ASP, so we introduce the "flow control ability in ASP3.0" below.


ASP3.0 flow control Technology In fact refers to the program flow, said the popular point is the process of the program, ASP3.0 has two new flow control methods: "Server.Transfer" and "Server.Execute", I will be the two methods of a rough introduction to everyone, In order to display its function concretely, I have compared Response.Redirect with Server.Transfer's use!
Typically using the Response.Redirect statement for address steering, ASP3.0 provides a new way for us to be more efficient. Let's take a look at how Response.Redirect and Server.Transfer respectively run!

The Response.Redirect actually sends an instruction (including a new address) to the browser when the server encounters the statement, and then lets the browser send the HTTP request, requesting the new HTTP address after the Response.Redirect, as follows:
Browser ASP file request-> Server execution-> encounter Response.Redirect statement-> server send Response.Redirect address to client side of browser-> The browser requests a new address (the address behind the Response.Redirect returned by the server) this is the whole process of a small response.redirect, do not see do not know, a look scared! It has so many processes, it's really scary ... and the Server.Transfer statement in ASP3.0 is directed to the following address after receiving the address, the process is as follows:
Browser ASP file request-> Server execution-> encountered Server.Transfer statement-> server to new file.



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.