Use ASP. NET to redirect pages.
First, response. Redirect ("A. aspx"). After saving the data on this page, the server directly redirects the page to A. aspx. This method has a defect, that is, all the Request Parameters on this page will be lost after turning, and this method requires the client to initiate a request.
A new function server. Transfer ("A. aspx") is introduced in IIS 5.0, which solves the problem of losing the request parameter of this page after turning. Because it initiates a request directly from the server to the next page, the client does not need to send the request again. It corresponds to response. the difference between redirect is: response. redirect can be switched to any page, while server. transfer can only switch to a webpage in the same directory or subdirectory; response. when redirect is switched, The address will change to the page address after the jump, while the server. the original address remains unchanged when the transfer is switched, and the passed parameter value is also hidden.
Another method is server. Execute (A. aspx), which is similar to server. Transfer. The main difference is that after server.exe cute is switched to a. aspx, the original page will be returned for further processing.