当前位置: 代码迷 >> Ajax >> ASP.net使用了AJAX控件后,如何点击按钮弹出新窗口?
  详细解决方案

ASP.net使用了AJAX控件后,如何点击按钮弹出新窗口?

热度:437   发布时间:2012-02-29 16:44:10.0
ASP.net使用了AJAX控件后,怎么点击按钮弹出新窗口? - Web 开发 / Ajax
我用
Response.Write("<script>window.open('Print.aspx','打印','location=no,resizable=yes,scrollbars=yes');</script>");
会报错:
“ PageRequestManagerParserErrorException:the message received from the server could not be parsed”

------解决方案--------------------
你可以用下面的方法试一试 呵呵 ClientScript.RegisterStartupScript(this.GetType(), "onclick", "window.open('Print.aspx','打印','location=no,resizable=yes,scrollbars=yes')", true);
  相关解决方案