Request Redirection (online transcription)

Source: Internet
Author: User

Transcription address http://www.sosuo8.com/article/show.asp?id=1158

(1) Server.Transfer Method:

Server.Transfer ("m2.aspx");//page steering (performed on server).
The server stops parsing this page, saves the data before turning the page to m2.aspx,
The M2.aspx page results are returned to the browser with the previous data.

(2) Server.Execute Method:

Server.Execute ("m2.aspx");
The server saves this page before turning to the data, so that the page turns to m2.aspx execution,
Go back to this page to continue. After merging the three results, return to the browser.

The above is the server-side page steering so the browser does not appear the page change record (the displayed address will not change).
Therefore, if the user refreshes this page, there may be some other unexpected situation.
This type of page turns and can accomplish some other functions, such as accessing the server-side controls on the previous page.

(3) Response.Redirect:

When the browser requests an ASPX page, it encounters the redirect (URL) method,
The equivalent of telling the browser that you need to access a page first, and then the browser sends a request to the server to this page.
Relocation is performed through the browser, which generates additional round trips between the server and the browser.

In a situation where the network condition is not very good, two requests will be greatly
Reduce the responsiveness of your application and even the extra bandwidth.

Summarize:

In the case of better network status, the Redirect (URL) method is the most efficient!!
Server.Transfer method and Server.Execute method are the most flexible!!
The Server.Execute method consumes the most resources.

Request Redirection (online transcription)

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.