(1) Server.Transfer method: Server.Transfer ("m2.aspx"); // Page Turn (executed on the server). The server stops parsing this page and saves the data before turning to the data, and then turn the page to M2. .aspx, and forward data before the data is added to the browser. (2) Server.execute method: Server.execute ("m2.aspx"); After the server saves this page, after turning the data, The page turned to M2.aspx execution, then returned this page to continue execution. Return the three results to the browser after merge. The above is the server-side page steering, so the browser does not appear page change record (the displayed address will not change) Therefore, if the user refreshes this page, some other accidents may appear. This page turn can complete some other features, such as access to the server control in the previous page. (3) Response.Redirect: When the browser When requesting an ASPX page, touch the Redirect (URL) method, which is equivalent to telling the browser, you need to access a page, so the browser sends a request to this page again. Relocation is performed through the browser, An additional round-trip process is generated between the servers and browsers. In the case where the network is not very good, the two requests will greatly reduce the response speed of the application, even account for extra bandwidth. Summary: Redirect (URL) method is the highest in the case of the network state !! Server .Transfer method and server.execute method is the most flexible !! Server.execute method takes up the highest resources.
2005-04-08 09:24 Author: oupatch column of C # [Comments: 2] [read: 226]