Forums - C# Corner

Forum guidelines
Resmi Satish

Resmi Satish

  • 706
  • 47
  • 21.4k

Not able to export to excel using IE8

Apr 3 2013 3:10 AM
Hi

I am getting the below error when exporting data  to excel from telerik grid(created a user control and using that) only in ie8 for https site.


I am using the below code for export functionality

     Response.ContentType = "text/csv";
     Response.AddHeader("content-disposition", "attachment; filename=filename.csv");
      Response.Write(csv);
     Response.End();

Note:cvs is a string builder which contains the data to export.

Please help me to resolve the issue.


Answers (2)

Join a Chapter

SPONSORED BY

Spire.Doc - Free .NET Word API
Use Spire.Doc to create, read, write, print, and convert word documents to OpenXML, RTF, TXT, XPS, EPUB, EMF, HTML, Image and PDF.