Re: Hyperlink not operating correctly in ASPX file

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: JerryK (jerryk_at_nospam.com)
Date: 01/13/05


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
>>>>
>>>>
>>>
>>>
>>
>>
>
>



Relevant Pages

  • Re: Problem with postback after Response.Write
    ... the browser makes a request to the server ... What is this ActiveX control? ... > server after the download dialog has completed. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Still Need desperate help to start with ASP NET - simplified problems - HELP!!
    ... You write that there is no IIS involved. ... which client sent it. ... browser and viceversa, I want the browser to display what the win ... running on the server? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: DevCo: A look from outside the window.
    ... you give data and control out of your hands. ... However usual end-users would have to rely on unknown people maintaing a server, ... A browser replacing the desktop that would have to asks the server if I can move ... SaaS has advantages but please don't try to fit everyone and everything in this ...
    (borland.public.delphi.non-technical)
  • RE: Accessing local host
    ... if sps is not the first browser app to be installed on your iis server then ... u will have to go into the bin directory and run adpath to allow sps to share ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: How to "allow IIS to control anonymous user password"?
    ... This is Server 2003, ... Right click on your Virtual Directory or Web site in the IIS MMC ... In the Anonymous access and authentication control box click the ... >> control the anonymous user password" option is. ...
    (microsoft.public.inetserver.iis.security)