Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

downloading .csv file

Status
Not open for further replies.

oops4me

Programmer
Jul 7, 2003
50
IN
i want to download .csv for that i have written a code in in .asp file as follows
<a href="files/test.csv">test</a>. when i open this html file in browser and click on that link(test), then it opening that file in browser in MS-excel format, instead of giving me dowload file dialog box.With the help of that dialogbox i can download that file. can any one give me the code.with the help of that i can download that file & not opening in browser. is there any facility in asp or code
in asp with the help of which user can download that .csv file using download dialog box, instead of that file is opening in browser.please give me the code
 
What the browser does with a file is up to its MIME type settings which you can not amend from the web. If you have control of the local computers - i.e. part of an intranet - then you may be able to change their settings. Otherwise the closest you can get is to send the file either with an unknown MIME type or as a .ZIP file for example.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top