probelaw
asked on
Force Download of .txt File
I have an asp script that dynamically generates a .txt file from a database. I want my application users to be able to call the script and be able to save the generated .txt file rather than view it. Internet Explorer recognizes the text file and just displays it in the window. My users have no need to view it, just download the file to import into another program. Different file extensions don't work. I just want IE to bring up the Open or Save dialog box when the browser points to this file.
http://www.allmyfaqs.com/faq.pl?Download_a_file
ASKER
Ok...but how can I put that code into the file? Just write it as lines in the text file?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.