(C #) how to generate a new tab for an ASP. NET Website

Source: Internet
Author: User

Summary of various ways to open a new page

[0] The most common open method

Respose. Write ("<script language = 'javascript '> window. Open ('" + URL + "'); </SCRIPT> ");

[1] switch directly to the new page, and the original window is replaced;

Response. Redirect ("XXX. aspx", true)

[2] The original window is retained, and a new page is added;
Response. Write ("<SCRIPT> window. Open ('xxx. aspx ',' _ blank ') </SCRIPT> ")

[3] open a new page, and the original window is replaced;

Response. Write ("<SCRIPT> window. Location = 'xxx. aspx '</SCRIPT> ")

[4] open a new page;

Server. Transfer ("XXX. aspx ")

Note: It is often used for page jumps that pass session variables!

[5] The original window is retained and a new window is opened in a dialog box;

Response. Write ("<SCRIPT> window. showmodelessdialog ('xxx. aspx ') </SCRIPT> ")

[6] dialog box to open a new window, the original window is replaced;

Response. Write ("<SCRIPT> window. showmodeldialog ('xxx. aspx ') </SCRIPT> ")

[7] Open a 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> ");

 

 

At first, I used system. diagnostics. process. start ("C:/Documents and Settings/Administrator/My Documents ents/Visual Studio 2008/websites/fckpro/system administrator. aspx "); to generate a new page, so it is not possible to achieve the jump, but to call Dreamweaver in my book to open this page. The system administrator. ASPX page can only be redirected after the URL is pasted, but I have not executed it yet. How can I have a URL? Therefore, you cannot use it to create a new tab. This function creates a new process to open a new program. You can also jump to a page pointed to by a URL. If you replace it with www.sohu.com in quotation marks, the page will jump to the Sohu homepage.

Related Article

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.