Force Download of .txt File
Posted on 2003-11-06
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.