ASP Web page Jump

Source: Internet
Author: User

1.Response.Redirect ("http://www.bcbbs.net ", False);
The target page and the original page can be on 2 servers, and you can enter a URL or relative path. The bool value that follows is whether to stop executing the current page.
Jump to a new page, the original window is replaced. "
The URL in the browser is the new path.
: The Response.Redirect method causes the browser to link to a specified URL. When the Response.Redirect () method is called, it creates an answer that is indicated in the answer header
Status Code 302 (indicates that the target has changed) and the new destination URL. The browser receives the reply from the server and uses the information in the reply header to make a request to the new URL. Say
When using the Response.Redirect method, the redirect operation occurs on the client, involving a total of two communications with the server (two back and forth): the first is a request to the original page,
Get a 302 answer, and the second is a new page declared in the Request 302 reply, to get the page after the redirect.
2.Server.Transfer ("Default2.aspx?name=zhangsan", true);
The target page and the original page can be on the same server.
Jump to a new page, the original window is replaced.
Wave Ball Forum The URL in the browser is the same as the original path.
By default, the Server.Transfer method does not pass the form data or query string from one page to another, but only if the second parameter of the method is set to
Tb310true, you can keep the form data and query strings for the first page.
At the same time, it should be noted when using Server.Transfer: The target page will use the original page to create the answer stream, which results in the machine validation check of ASP. b310, Bo Ball, Bo Net, insider heart water, race recommendation, race analysis, database, football tournament, basketball, NBA, odds, Score, basketball data, football data. N) U7 p/j2 m-% r
(machine authentication Check,mac) that the viewstate of the new page has been tampered with. Therefore, if you want to preserve the form data and query string collections of the original page,
You must set the enableViewStateMac property of the page directive of the target pages to false.

3.Server.Execute ("default5.aspx?address=beijing");
The target page and the original page can be on the same server.
Jump to a new page, then jump to the original page.
The URL in the browser is the same as the original path.
When the specified ASPX page finishes executing, the control flow returns to the original page where the Server.Execute call was made.
This kind of page navigation is similar to a function call on an ASPX page, where the called page has access to the form data and query string collection that made the calling page, so the (| C # m; j% V
The enableViewStateMac property of the paged page directive is set to false. 4.Response.Write ("<script language= ' JavaScript ' >window.open (' aaa.aspx ');</script>"); _
The target page and the original page can be on 2 servers, and you can enter a URL or relative path.
The original window is reserved and another new page is added.
5.Response.Write ("<script language= ' javascript ' >window.location= ' default2.aspx ' </script>");b310 Wave Ball Forum $ r/v9 T; X6 H4 A "O3 j-n*?: d& E
Open a new page, the original window is replaced.
6.Response.Write ("<script>window.showmodaldialog (' default2.aspx ') </script>");
7.Response.Write ("<script>window.showmodelessdialog (' default2.aspx ') </script>");
(a), what is the difference between ShowModalDialog and showModelessDialog?
ShowModalDialog: The input focus is always maintained when it is opened. The user cannot switch to the main window unless the dialog box is closed. The effect is similar to alert operation. B310,, Bo Ball, Bo Net, insider heart water, race recommendation, race analysis, database, football matches, basketball, NBA, odds, scores, basketball data, Football data 1 x/b# F9]; U2 Z, ~
showModelessDialog: After being opened, the user can randomly switch the input focus. Has no effect on the main window (at most, it is blocked.) :P) (b), how do I let the ShowModalDialog and showModelessDialog hyperlinks not pop up a new window?
Add <base target= "_self" > on the page that is opened. This sentence is usually placed between

ASP Web page Jump

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.