读书人

在网上也没找到解决方法

发布时间: 2012-01-18 00:23:26 作者: rapoo

在网上也没找到解决办法!
使用了updatepanle后gridview就不能导出为excel报表了.
错误提示:
Sys.WebForms.PageRequestManagerParserErrorException:The message received from the server could not be parsed. Common causes for this this error are when the response is modified by calls to Response.Write(),
Details:Error parsing near 'runat=server J| '




[解决办法]
帮你顶!不知
[解决办法]
用了updatepanle,就不能用Response.Write()了
它会扰乱Scriptmanage的脚本输入
[解决办法]
放弃updatepanle了,用这个太多问题了 - -!
[解决办法]
Response.Write()
改为用ScriptManager.RegisterClientScriptBlock这个方法

读书人网 >asp.net

热点推荐