日期:2014-05-17  浏览次数:20464 次

ASP.NET打开新页面而不关闭原来的页面
因为页面中有ScriptManager控件,所以好多方法都无法打开,请教大哥们
比如说在新页面打开http://baidu.com,应该如何来写

------解决方案--------------------
ScriptManager.RegisterStartupScript(UpdatePanel1, UpdatePanel1.GetType(), "hid","<script>window.open('http://www.baidu.com');</script>");false);
------解决方案--------------------
ScriptManager.RegisterStartupScript(this.UpdatePanel1, this.GetType(), "open", "<script>window.open('http://www.baidu.com');</script>", true);

试试
------解决方案--------------------
探讨

ScriptManager.RegisterStartupScript(UpdatePanel1, UpdatePanel1.GetType(), "hid","<script>window.open('http://www.baidu.com');</script>");false);