Dynamic Data gridView export to Excel error RRS feed

  • Question

  • User967562373 posted


    Can you help me to solve my problem with dynamicdata grid view export to excel problem.

    In List.aspx file

    <asp:Button ID="btnExportGrid" runat="server" Text="Export to Excel" OnClick="BtnExportGrid_Click"/>

    protected void BtnExportGrid_Click(object sender, EventArgs e) {
                GridViewExportUtil.Export("ExportFile.xls", this.GridView1);

    GridViewExportUtil i have taken from this good resource http://mattberseth.com/blog/2007/04/export_gridview_to_excel_1.html.

    But wneh executing this code, there is 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 border="0'.




    Monday, December 15, 2008 4:27 AM

All replies