Multiple methods for opening new windows in asp.net)
Source: Internet
Author: User
1. Response. Redirect ("XXX. aspx", true) -- go directly to the new page and replace the original window;
2. Response. Write ("<script> window. open (XXX. aspx ',' _ blank ') </script>") -- retain the original window and add a new page;
3. Response. Write ("<script> window. location = XXX. aspx '</script>") -- open a new page and replace the original window;
4. Server. Transfer ("XXX. aspx") -- open a new page and replace the original window;
5. Response. Write ("<script> window. showModelessDialog (XXX. aspx ') </script>") -- retain the original window and open a new window in the form of a dialog box;
6. Response. Write ("<script> window. showModalDialog (XXX. aspx ') </script>") -- open a new window in the dialog box. The original window is replaced;
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.