读书人

ASP.net使用了AJAX控件后如何点击按

发布时间: 2012-02-29 16:44:10 作者: rapoo

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

读书人网 >Ajax

热点推荐