解决Response.Redirect _blank 弹出新页面

看了网上很多说用Response.Write( " <script> window.open( 'userInformation.aspx '); </script> ");

我觉得window.open, 可能会被栏截. 这里我想了一个办法, 不知道怎么样, 有意见的反馈一下, 谢谢.

在后台代码中会生成如果字符串, 模拟去点击一个超链接:

<a id="openWURL" href="http://www.baidu.com" target="_blank"></a><script>document.getElementById("openWURL").click();</script>

参考代码:

Page.ClientScript.RegisterStartupScript(Page.GetType(), "OpenNewWindow", string.Format(@"<a id='openWURL' href='{0}' target='_blank'></a><script>document.getElementById('openWURL').click();</script>", 你要弹出新页面的URL));                      

原文地址:https://www.cnblogs.com/chencidi/p/2207349.html