首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

ASP.NET打开新页面而不封锁原来的页面

2012-08-28 
ASP.NET打开新页面而不关闭原来的页面因为页面中有ScriptManager控件,所以好多方法都无法打开,请教大哥们

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);

热点排行