I have a web application using aspx and with C # code. I am using HttpResponse
to be able to download the result in a CSV file.
When I use Chrome it downloads without problems with the extension .csv. The problem is when I use FireFox, the file that downloads is file (without extension).
Here is my part of code using HttpResponse
System.Web.HttpResponse response = System.Web.HttpContext.Current.Response;
response.ContentType = "text/csv";
response.AddHeader("Content-Disposition", "attachment; filename=" + outCsvFile + ";");
response.TransmitFile(outCsvFile);
response.Flush();
response.End();
What could be the problem?