当前位置: 代码迷 >> ASP.NET >> 在网上也没找到解决方法
  详细解决方案

在网上也没找到解决方法

热度:2312   发布时间:2013-02-26 00:00:00.0
在网上也没找到解决办法!
使用了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这个方法
  相关解决方案