ASP # Opens a new page or page jump

Source: Internet
Author: User

1. The most commonly used page jumps (the original window is replaced): Response.Redirect ("xxx.aspx");

2. Open a local webpage or Internet using the URL address: respose.write ("<script language= ' JavaScript ' >window.open ('" + url+ "');</script>") ;

3. The original window is retained to open another page (the browser may block, need to release): Response.Write ("<script>window.open (' xxx.aspx ', ' _blank ') </script>") ;

4. Another way of writing the effect with 1: Response.Write ("<script>window.location= ' xxx.aspx ' </script>");

5. Also the original window is replaced (often used to pass the session variable page jump): Server.Transfer ("xxx.aspx");

6. Keep the original window, open a new window as a dialog box: Response.Write ("<script>window.showmodelessdialog (' xxx.aspx ') </script>");

7. Open a new window in the form of dialog, the original window is replaced by: Response.Write ("<script>window.showmodeldialog (' xxx.aspx ') </script>");

8. Open the Compact window: Respose.write ("<script language= ' JavaScript ' >window.open ('" +url+ "', ' ', ' resizable=1,scrollbars=0, Status=1,menubar=no,toolbar=no,location=no, Menu=no ');</script> ");

9. Using the VS2008 port: System.Diagnostics.Process.Start (http://localhost:3210/system administrator. aspx);

ASP # Opens a new page or 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.