tags:

views:

195

answers:

4
+8  A: 

I believe this will work for you.

Response.AddHeader("content-disposition", "attachment; filename=NewFileName.csv");
Joe Skora
+1  A: 

Add a "Content-Disposition" header with the value "attachment; filename=filename.csv".

James Schek
+1  A: 

Response.AddHeader("content-disposition", "attachment; filename=File.doc")

Matt Lacey
+3  A: 

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

Mark Biek