updatepanlel 打开新的页面

ffchong 2014-10-21 03:52:43
如何在后台中打开新页面.
这是我的代码,打开不了新页面
ScriptManager.RegisterStartupScript(UpdatePanel1, UpdatePanel1.GetType(), "", "window.open('unitlistprint.aspx')", true);

但是可以跳转页面
        ScriptManager.RegisterStartupScript(UpdatePanel1, UpdatePanel1.GetType(), "", "window.location.href='unitlistprint.aspx'", true);


...全文
60 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
ffchong 2014-10-21
  • 打赏
  • 举报
回复
搞定了,一直是用火狐测试的,原来是火狐禁用了弹窗,换个浏览器就可以了
ffchong 2014-10-21
  • 打赏
  • 举报
回复
人工置顶..

110,533

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧