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)