Hi
I am generating a CSV file on the fly in my aspx page. RadCompression is giving me an error when processing is done and it is about to send a "application/octet-stream" content type to my page.
Here's my code.
I had to remove RadCompresstion from the web.config to get this working. Thanks.
I am generating a CSV file on the fly in my aspx page. RadCompression is giving me an error when processing is done and it is about to send a "application/octet-stream" content type to my page.
Here's my code.
string strFileContent = sb.ToString(); // This is the CSV string generated |
// EXPORT |
string strFile = "export.csv"; |
string ContentType = "application/octet-stream"; |
Response.Clear(); |
Response.ContentType = ContentType; |
Response.AddHeader("Content-Disposition", "attachment; filename=\"" + strFile + "\""); |
Response.Flush(); |
Response.Write(strFileContent); |
Response.End(); |
I had to remove RadCompresstion from the web.config to get this working. Thanks.