I’m trying to export my GridView to excel, but I’m having some problems.
At first I got few other errors so I added EnableEventValidation ="false" to my page, and I added public override void VerifyRenderingInServerForm(Control control) in my source code.
Now i’m getting this error from javascript:
Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed.
I’m guessing it’s because my grid is in ajax update panel, but i’m not sure about it.
Any idea?
Thanks.
This is because of your update panel if you remove your update panel it will work or you can set a PostBackTrigger for detail see this blog post
http://nice-tutorials.blogspot.com/2009/06/export-gridview-to-excel-within-update.html