C1GridView - Export to Excel

Posted by: wallner on 10 September 2017, 11:51 am EST

  • Posted 10 September 2017, 11:51 am EST


    I try to export C1GridView to Excel. I get the sample from

    But I get exception with message in german:

    Laufzeitfehler in Microsoft JScript: Sys.WebForms.PageRequestManagerParserErrorException: Die vom Server empfangene Nachricht konnte nicht analysiert werden. Häufige Ursachen für diesen Fehler sind: Änderung der Antwort durch Aufrufe von Response.Write(), Antwortfilter, HttpModules oder aktivierte Serverablaufverfolgung.
    Details: Fehler beim Analysieren in der Nähe von "<div class="ui-helpe".

    What did I do wrong? Thanks in advance!

  • Replied 10 September 2017, 11:51 am EST

    Hello Wallner,

    I am not able to replicate the issue with the code that you provided. See attached sample containing code you are using and it is working correctly at my end.
    As per the exception message it seems to be an issue with the aspx code at your end. I request you to check the same in your project. In case the issue still persists, I request you to please send me a complete sample wherein the the issue is replicated.
    Also, kindly let me know which version of C1GridView are you using?

  • Replied 10 September 2017, 11:51 am EST

    Hello Nidhi,

    thank you for quick answer and example with my code:-)

    I get your attachment and it's work very fine! I use the version C1.Web.Wijmo.Controls.3 and VisualStudio 2008.

    I think, my problem will be then probably because i use a master page?!

    I'm going to change my web pages and integrate your example. Then I come back!

    Frank Wallner
  • Replied 10 September 2017, 11:51 am EST

    Hello Nidhi,

    Yes, the problem occurs when working with masterpage!

    My workaround: I create for export a website without masterpage.

    Is still a small problem, that excel reports an error when open the download file (see attachment).

    Message: "You are trying to open a file in a format different from the file extension." After acknowledge "YES" the data are correct visible in Excel.

    I think it's a problem with Microsoft Office 2010?

    Frank Wallner

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels