Ask a Question related to ASP, Design and Development.
-
Roberto #1
How Browsers (IE) understand file types.
1) I have the following html code on the server:
<HTML>
....
.....
<BODY>
<A HREF = http://MyServer/MyDoc.doc> Click here to see the document</A>
When I click on the link How Internet Explorer understand that it's a Word
Document and It's necessary open it with Microsoft Word ? Is The extension
to give the necessary information to Internet Explorer ?
Where does IE look for the application to use to open the file on the server
? On the local registry ?
I have tried to rename Mydoc.doc in MyDoc.pdf and I have called
[url]http://MyServer/MyDoc.pdf[/url] and the browser has opened Acrobat Reader but the
binary format is for Microsoft Word.
Does the Browser User an Http_Header sended automatically ? (for example
HTTP_FILE_NAME....IF IT EXISTS)
2)Now I have the following link:
[url]http://MyServer/ReturnMyDoc.asp[/url]
It returns the binary data of MyDoc.doc file. Now I want to say to the
browser that the file is called MyDoc.doc (I don't want to use Content Type
= ms-application/msword) : is there a header to say this to Internet
Explorer ?
Thanks Rob.
Roberto Guest
-
I don't understand this error: File or assembly name l6v3q9ad.dll, or one of its dependencies, was not found.
File or assembly name l6v3q9ad.dll, or one of its dependencies, was not found.I created a WebService project using the template in VS 2003 (.Net... -
[PHP] File Types
On Mon, 15 Sep 2003, Raditha Dissanayake wrote: Did that as well as googled for the list of extensions. Still can't seem to find the mime type... -
File Types
I currently limit file types in an upload script by using an allowed types array $allowed_types = array("image/jpeg", "image/gif"); I also... -
Cannot understand file-open script stops
I am a php beginner, so apologize if this question is just silly. I am encountering apparently random script stops when I try to get a remote... -
File types help
You are probably not running a web server. Popular choice for PHP is Apache. http://www.apache.org if you have downloaded and installed apache,... -
Mark Schupp #2
Re: How Browsers (IE) understand file types.
The association is in the client system registry. Usually set up when you
install the application that is intended to view the document. look at .pdf
and AcroExch.Document under hkey_classes_root for an example.
--
Mark Schupp
Head of Development
Integrity eLearning
[url]www.ielearning.com[/url]
"Roberto" <rob@1977.it> wrote in message
news:u2%23utlwkDHA.2432@TK2MSFTNGP10.phx.gbl...extension> 1) I have the following html code on the server:
>
> <HTML>
> ...
> ....
> <BODY>
> <A HREF = http://MyServer/MyDoc.doc> Click here to see the document</A>
>
> When I click on the link How Internet Explorer understand that it's a Word
> Document and It's necessary open it with Microsoft Word ? Is Theserver> to give the necessary information to Internet Explorer ?
> Where does IE look for the application to use to open the file on thethe> ? On the local registry ?
> I have tried to rename Mydoc.doc in MyDoc.pdf and I have called
>
> [url]http://MyServer/MyDoc.pdf[/url] and the browser has opened Acrobat Reader butType> binary format is for Microsoft Word.
>
> Does the Browser User an Http_Header sended automatically ? (for example
> HTTP_FILE_NAME....IF IT EXISTS)
>
> 2)Now I have the following link:
>
> [url]http://MyServer/ReturnMyDoc.asp[/url]
>
> It returns the binary data of MyDoc.doc file. Now I want to say to the
> browser that the file is called MyDoc.doc (I don't want to use Content> = ms-application/msword) : is there a header to say this to Internet
> Explorer ?
>
> Thanks Rob.
>
>
Mark Schupp Guest
-
Mike Moore [MSFT] #3
RE: How Browsers (IE) understand file types.
Hi Rob,
Thank you Mark for your info. I thought I might expand on it a bit.
1)
IE knows which application to run based on the file's file extension (.doc
or .pdf) along with the content type (ms-application/msword). IE matches
these up with the local registry to determine which application to launch.
2)
Here the file extension is .asp. That means the content type must be used
for IE to distinguish what application to launch. You wrote that you don't
want to use content type either. That means IE will not know which
application to launch.
Thank you, Mike
Microsoft, ASP.NET Support Professional
Microsoft highly recommends to all of our customers that they visit the
[url]http://www.microsoft.com/protect[/url] site and perform the three straightforward
steps listed to improve your computer’s security.
This posting is provided "AS IS", with no warranties, and confers no rights.
--------------------extension> Reply-To: "Roberto" <roberto.leo@exm.it>
> From: "Roberto" <rob@1977.it>
> Subject: How Browsers (IE) understand file types.
> Date: Wed, 15 Oct 2003 12:46:32 +0200
> Lines: 33
> X-Priority: 3
> X-MSMail-Priority: Normal
> X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
> Message-ID: <u2#utlwkDHA.2432@TK2MSFTNGP10.phx.gbl>
> Newsgroups: microsoft.public.inetserver.asp.general
> NNTP-Posting-Host: 213.255.101.214
> Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
> Xref: cpmsftngxa06.phx.gbl microsoft.public.inetserver.asp.general:255466
> X-Tomcat-NG: microsoft.public.inetserver.asp.general
>
> 1) I have the following html code on the server:
>
> <HTML>
> ...
> ....
> <BODY>
> <A HREF = http://MyServer/MyDoc.doc> Click here to see the document</A>
>
> When I click on the link How Internet Explorer understand that it's a Word
> Document and It's necessary open it with Microsoft Word ? Is Theserver> to give the necessary information to Internet Explorer ?
> Where does IE look for the application to use to open the file on thethe> ? On the local registry ?
> I have tried to rename Mydoc.doc in MyDoc.pdf and I have called
>
> [url]http://MyServer/MyDoc.pdf[/url] and the browser has opened Acrobat Reader butType> binary format is for Microsoft Word.
>
> Does the Browser User an Http_Header sended automatically ? (for example
> HTTP_FILE_NAME....IF IT EXISTS)
>
> 2)Now I have the following link:
>
> [url]http://MyServer/ReturnMyDoc.asp[/url]
>
> It returns the binary data of MyDoc.doc file. Now I want to say to the
> browser that the file is called MyDoc.doc (I don't want to use Content> = ms-application/msword) : is there a header to say this to Internet
> Explorer ?
>
> Thanks Rob.
>
>
>Mike Moore [MSFT] Guest



Reply With Quote

