That's different. Content is interpreted on the client side based on it's MIME type. If you want to force it to download, you can use
the following ASP page (you'll need ASP on IIS 4.0+ for this to work:)
The following will always prompt to download a word document (test.doc) instead of opening it:
< %
Response.AddHeader "Content-Disposition", "attachment;filename=test.doc;portable-filename=test.doc"
Response.ContentType = "application/octet-stream"
% >
< !-- #INCLUDE FILE="test.doc" -- >
You'll need to remove the spaces between < % and < ! for it to work
HTH,
Ed
>I does not work or I did something wrong. If I create a hyperling to a .txt file than the file is not to be download but it printer on the browser.
>
>How do I make that file to download?
>
>Thanks
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only