run
asp and load the text file into a stream object and send it to the
browser.
The
example has a small code error:
Response.AddHeader "Content-Disposition", "attachment; filename=
strFileName
should be Response.AddHeader "Content-Disposition", "attachment; filename=" & strFileName Add the
following line:
Case
".txt"
ContentType = "text/plain" I hope this
helps.
Cheers
Adrian
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Omar K. Sent: Thursday, February 05, 2004 6:22 AM To: [EMAIL PROTECTED] Subject: *****spam*****[11]RE: [Declude.JunkMail] Off topic - iis, web servers and txt files Mess
around with the mime maps for your IIS server, define that file extension as
anything other than clear-text, I think that will tell the browser to treat it
as an attachment and not open it up in the browser.
|
Title: Message