Craig,
This is happening because you are probably linking a HREF directly to a .DOC format.
The reason is the MIME type is automatically specified by the server to be "application/ms-word"
If the client computer has "application/ms-word" registered in the HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/msword
key, then that application is envoked.
If you don't specify the content type, IIS 4.0 automatically add's the MIME header for you (you're not seeing it, but it's there).
You can override the MIME header in ASP using
< % RESPONSE.ContentType = "SomeFormat/Unknown" % >
Since the SomeFormat/Unknown will not have a registry entry, the user will be prompted to save the file. IE will invoke the Save
dialog for any MIME type it doesn't understand or doesn't have an application associated with it under HKEY_CLASSES_ROOT\MIME\Database\Content Type
HTH,
Ed
>I need to download Word Doc files and would like to preserve their native format if possible. If I use A HREF to the document, it opens Word in the browser. I don't want that. I want the file actually downloaded. Is there anyway I can do this?
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement