K
Kit Truong
Hello,
I have an asp page that produces output from a database. This allows a
simple way for the user to save the data to a text file by going to
File->Save as...
The default save as options always defaults to a particular filename and the
save as type is always html, therefore the user has to manually type a
filename and choose Text File (*.txt) as the type.
I remember I was able to overide ride these options with the following code.
Response.ContentType = "text/plain"
Response.AddHeader "Content-Disposition", "inline; filename=myfilename"
This doesn't seem to be working for me anymore.
Any thoughts?
Kit
I have an asp page that produces output from a database. This allows a
simple way for the user to save the data to a text file by going to
File->Save as...
The default save as options always defaults to a particular filename and the
save as type is always html, therefore the user has to manually type a
filename and choose Text File (*.txt) as the type.
I remember I was able to overide ride these options with the following code.
Response.ContentType = "text/plain"
Response.AddHeader "Content-Disposition", "inline; filename=myfilename"
This doesn't seem to be working for me anymore.
Any thoughts?
Kit