Link to home
Start Free TrialLog in
Avatar of probelaw
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.
Avatar of dorward
dorward

Avatar of probelaw

ASKER

Ok...but how can I put that code into the file?  Just write it as lines in the text file?
ASKER CERTIFIED SOLUTION
Avatar of Gary
Gary
Flag of Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial