我试图将我的GridView
导出为excel,但我遇到了一些问题。Asp.net GridView导出为Excel问题
起初我还有几个其他的错误,所以我在我的页面上加了EnableEventValidation ="false"
,我在我的源代码中加了public override void VerifyRenderingInServerForm(Control control)
。 现在我从JavaScript收到此错误:
Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed.
我猜这是因为我的网是ajax
更新面板,但我不知道这件事。
有什么想法?
谢谢。
它听起来就像你有一个服务器端异常和您还告诉脚本管理器处理错误。请确保您没有任何response.write或response.redirect,因为它们不适用于更新面板。 – 2012-04-11 06:07:46