kayhustle
asked on
How to send csv file to client through FireFox
I want to send a csv file to a client from my asp .net application. When I do the following
Response.AddHeader("Conten t-Disposit ion", "mycsvfile.csv");
Response.Write("[csv file elements]);
Response.End();
I get a csv file for IE, however in Firefox it gives me a mycsvfile.csv.txt file. How do I make it so that it does not interpret the file as a txt file for Firefox?
Response.AddHeader("Conten
Response.Write("[csv file elements]);
Response.End();
I get a csv file for IE, however in Firefox it gives me a mycsvfile.csv.txt file. How do I make it so that it does not interpret the file as a txt file for Firefox?
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Response.Flush
Before
Response.End
In order to flush the memory.