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

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

2012-02-29 
ASP.net使用了AJAX控件后,怎么点击按钮弹出新窗口? - Web 开发 / Ajax我用Response.Write(scriptwindow

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

热点排行