从Gridview导出到Excel [英] Export from Gridview To Excel

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

问题描述

大家好,

当我尝试将gridview导出到excel时,出现运行时jscript错误.
错误是..

Microsoft JScript运行时错误:Sys.WebForms.PageRequestManagerParserErrorException:无法解析从服务器收到的消息.导致此错误的常见原因是通过调用Response.Write()修改了响应,响应过滤器,HttpModules或服务器跟踪已启用.
详细信息:''<table rules="all" b''.
附近的错误解析
在调试时,我知道在HttpContext.Current.Response.End();语句中发生了错误..

请问可能是什么原因.?

提前致谢.

Hi All,

When I try to export gridview to excel I am getting runtime jscript error.
Error is..

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.
Details: Error parsing near ''<table rules="all" b''.

While debugging I came to know error is occuring at HttpContext.Current.Response.End(); statement..

Please can I know what could be the reason.?

Thanks in Advance.

推荐答案

拉吉,

看看此处 [ Sys.WebForms.PageRequestManagerParserErrorException [行中的"b"是什么.我认为表格标签书写不正确.提供有关此信息.
Hi Raj,

Have a look Here[^] & try this. i used recently & got success.

have a look here about that raised exception
Sys.WebForms.PageRequestManagerParserErrorException[^]

what is ''b'' in this line ''<table rules="all" b''. i think table tag not written properly. provide some information regarding this.


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

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