Re: Hyperlink not operating correctly in ASPX file
From: JerryK (jerryk_at_nospam.com)
Date: 01/13/05
- Next message: A P: "Re: Web Matrix or Visual Studio .NET?"
- Previous message: Chris Dickens: "Re: Hyperlink not operating correctly in ASPX file"
- In reply to: Chris Dickens: "Re: Hyperlink not operating correctly in ASPX file"
- Next in thread: Chris Dickens: "Re: Hyperlink not operating correctly in ASPX file"
- Reply: Chris Dickens: "Re: Hyperlink not operating correctly in ASPX file"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 12 Jan 2005 18:14:36 -0800
I have control of the server so I can check out the IIS settings.
The browser is IE
It is not unique to this installion of IIS or IE also. I tried on
server/client combinations and the results are the same. Very strange.
Windows Server 2003 (my client) seems to know about the .CER extension. It
reports it as a Certificate file in File Explorer.
jerry
"Chris Dickens" <chris@NOSP-Mobject-zone.net> wrote in message
news:%23VKefPR%23EHA.2788@TK2MSFTNGP15.phx.gbl...
> MIME types are normally configured in the IIS Manager by going to
> properties on the web server machine and clicking the "MIME Types" button.
> If you do not have admin rights to the web server (like if you're hosted)
> then you'll have to call/e-mail your web host and have them add it for
> you.
>
> I'm not sure why a browser would react differently if the link is on an
> HTM vs an ASPX page - the web server returns the MIME type as a part of
> the headers at the top of each response sent to the web browser and this
> determines how the browser reacts, not the page before you click the link.
> What browser is it?
>
> --Chris
>
> "JerryK" <jerryk@nospam.com> wrote in message
> news:%23yFnWgQ%23EHA.3596@TK2MSFTNGP12.phx.gbl...
>> Thanks for the reply. I assumed it was MIME replated, but it is very
>> strange that it works from an HTML page but not from an ASPX page.
>>
>> Just where does one set the return? This is a hyperlink control in the
>> middle of a dozen other controls on the form. Also, I do not see any
>> properties that effect the return when the user clicks a hyperlink
>> control.
>>
>> jerry
>>
>>
>> "Chris Dickens" <chris@NOSP-Mobject-zone.net> wrote in message
>> news:eJ3OJjN%23EHA.936@TK2MSFTNGP12.phx.gbl...
>>>I would assume the problem is MIME related. Check with Google and see
>>>what kind of MIME type .CER files should be set to, or just set the
>>>server to return "application/octet-stream" - that's sure to get a save
>>>box.
>>>
>>> --Chris
>>>
>>> "JerryK" <jerryk@nospam.com> wrote in message
>>> news:%23e3M1bN%23EHA.1564@TK2MSFTNGP09.phx.gbl...
>>>> Hi,
>>>>
>>>> I am trying to put a hyperlink to a .cer (certificate) file on a form.
>>>> Normally (on a ,htm page) when the user clicks on the hyperlink, the
>>>> file is not recognized and the user is given the option to save the
>>>> file. This is the desired result. However, when I put the hyperlink on
>>>> a webform, the file is opened and it's binary contents are displayed on
>>>> the screen. Does anyone know why this happens?
>>>>
>>>> The hyperlink is as follows:
>>>>
>>>> <a hreg="myfile.cer">Test Cert</a>
>>>>
>>>> I also tried using Hyperlink web control and setting the
>>>> NavigateUrl="myfile.cer", but the results are the same.
>>>>
>>>> Thanks,
>>>>
>>>> jerry
>>>>
>>>>
>>>
>>>
>>
>>
>
>
- Next message: A P: "Re: Web Matrix or Visual Studio .NET?"
- Previous message: Chris Dickens: "Re: Hyperlink not operating correctly in ASPX file"
- In reply to: Chris Dickens: "Re: Hyperlink not operating correctly in ASPX file"
- Next in thread: Chris Dickens: "Re: Hyperlink not operating correctly in ASPX file"
- Reply: Chris Dickens: "Re: Hyperlink not operating correctly in ASPX file"
- Messages sorted by: [ date ] [ thread ]