I believe this will work for you.
Response.AddHeader("content-disposition", "attachment; filename=NewFileName.csv");
Joe Skora
2008-10-03 18:20:01
I believe this will work for you.
Response.AddHeader("content-disposition", "attachment; filename=NewFileName.csv");
Add a "Content-Disposition" header with the value "attachment; filename=filename.csv".
Response.AddHeader("content-disposition", "attachment; filename=File.doc")
You just need to set the Content-Disposition header
Content-Disposition: attachment; filename=data.csv;
This Microsoft Support article has some good information
How To Raise a "File Download" Dialog Box for a Known MIME Type