The difference between Server.transfer,response.redirect and page.navigate
Source: Internet
Author: User
redirect|response|server| difference Server.Transfer (ASP 3.0) and Response.Redirect exist in previous ASP, Page.navigate is asp.net Beta 1 The new features available, the difference between them is:
1, Server.Transfer-Used to transfer control of processing from one page to another page, in the process of transfer, did not leave the server, internal controls (such as: request, session, etc.) of the saved information unchanged, so you can jump from page A to page B You do not lose the user submissions that are collected in page A. In addition, the browser's URL bar does not change during the transfer process.
2, Response.Redirect-sends an HTTP response to the client, tells the client to jump to a new page, the client sends a jump request to the server again. When you use this method, you will not be able to save all the internal control data, page a jumps to page B, and page B will not be able to access the data submitted by Form A in page a.
3, page.navigate-page.navigate implementation of the function and Response.Redirect almost, it actually includes three steps: First call Response.Redirect, followed by unloading all the controls, the last Call Response.End.
<b> in particular,:</b> in. NET Beta 2, Microsoft will no longer include the Page.navigate feature, and you should now replace it with Response.Redirect Page.navigate to save time for future upgrades.
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