January 21st, 2013, 10:49 AM
Classic ASP - Need help with download text file
I am creating a text file, that once created is to be downloaded. I have the file being created and saved on the server, the problem I am having is getting the download/open dialog to work. The following is my current code and while this works to a point, the file the user receives is a text file containing html code along with the contents of the actual file.
Any and all help is appreciated.
Const adTypeBinary = 1
strFileName = "test.txt"
strFilePath = "c:\extracts\" + strFileName
Set objStream = Server.CreateObject("ADODB.Stream")
objStream.Type = adTypeBinary
Response.AddHeader "Content-Disposition", "attachment; filename=" & strFileName
Response.Charset = "UTF-8"
Response.ContentType = "image/jpeg"
January 26th, 2013, 04:44 PM
download text file using asp code
I found url to help u code in asp
January 28th, 2013, 06:50 AM
....and the url might be???????
Originally Posted by faisalismail
January 31st, 2013, 08:59 PM
I also Provide this URL Same as
January 31st, 2013, 09:06 PM
Enough already. Thread closed.
The man who doesn't read good books has no advantage over the man who can't read them.