Asp.net C # open a new page or jump to the page

Source: Internet
Author: User

1. The most common page Jump (the original window is replaced): Response. Redirect ("XXX. aspx ");

2. use the URL address to open a local webpage or the Internet: respose. write ("<script language = 'javascript '> window. open ('"+ URL +"'); </SCRIPT> ");

3. the original window is retained and another page is opened again (the browser may block it and you need to remove it): Response. write ("<SCRIPT> window. open ('xxx. aspx ',' _ blank ') </SCRIPT> ");

4. response. Write ("<SCRIPT> window. Location = 'xxx. aspx '</SCRIPT> ");

5. It is also replaced by the original window (usually used for page jumps that pass session variables): Server. Transfer ("XXX. aspx ");

6. Retain the original window and open a new window in the form of a dialog box: Response. Write ("<SCRIPT> window. showmodelessdialog ('xxx. aspx ') </SCRIPT> ");

7. open a new window in the dialog box. The original window is replaced by: Response. Write ("<SCRIPT> window. showmodeldialog ('xxx. aspx ') </SCRIPT> ");

8. open the concise 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. Use vs2008 port: system. Diagnostics. process. Start (http: // localhost: 3210/system administrator. aspx );

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.