在ASP页面中导出Excel错误 [英] Export Excel Error in asp page

查看:101
本文介绍了在ASP页面中导出Excel错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




单击将数据导出到excel的按钮时,出现以下错误消息

我没有将更新面板用于按钮,我仅将更新面板用于gridview


Microsoft JScript运行时错误:Sys.WebForms.PageRequestManagerParserErrorException:无法解析从服务器收到的消息.导致此错误的常见原因是通过调用Response.Write(),响应过滤器,HttpModules或服务器跟踪来修改响应.

如何解决此问题

Hi,


I''m getting following error message when i''m click button for export datatable to excel

I''m not using update panel for button, I''m I''m using update panel for only gridview


Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.

how to solve this problem

推荐答案

在UpdatePanel标签关闭之前,为该按钮添加以下Trigger标签.

Add the below Trigger tag for that button before the UpdatePanel Tag close .

<Triggers>              
                <asp:PostBackTrigger ControlID="btn1" />
            </Triggers>


这篇关于在ASP页面中导出Excel错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆