1、Response.Write()打开新窗口
Response.Write(" <script type='text/JavaScript'>window.open('" + url + "','_blank'); </script>");
2、asp.net打开新窗口的多种方法
1.Response.Redirect("XXX.aspx",true)——直接转向新的页面,原窗口被代替; 2. Response.Write("<script>window.open(XXX.aspx'',''_blank'')</script>")——原窗口保留,另外新增一个新页面; 3.Response.Write("<script>window.location=XXX.aspx''</script>")——打开新的页面,原窗口被代替; 4.Server.Transfer("XXX.aspx")——打开新的页面; 5.Response.Write("<script>window.showModelessDialog(XXX.aspx'')</script>")——原窗口保留,以对话框形式打开新窗口; 6.Response.Write("<script>window.showModalDialog(XXX.aspx'')</script>")——对话框形式打开新窗口,原窗口被代替;