在网上也没找到解决办法!
使用了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这个方法