Hello all,
I am trying to write a bit of code that will export the current contents of a gridview to an excel file on the local system. I've looked at several examples on how to do it and implemented it. However, i am unable to get the gridview to export the data.
Here's the basics of what i am doing:
I'm using httpcontext.current.response to specify the file contents and filename. creating Stringwriter and htmltextwriter objects.
then rendering the table into the htmlwriter then rendering the htmlwriter to the response.
however, regardless of how large or small the table i am working with is, i keep getting the following error:
Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed.
Visual Studio opens a file called ScriptResource.axd and the error is noted in the following section of code at th ...
Go to the complete details ...