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 5 2061
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" <je****@nospam.com> wrote in message
news:%2******************@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
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" <ch***@NOSP-Mobject-zone.net> wrote in message
news:eJ***************@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" <je****@nospam.com> wrote in message news:%2******************@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
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" <je****@nospam.com> wrote in message
news:%2******************@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" <ch***@NOSP-Mobject-zone.net> wrote in message news:eJ***************@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" <je****@nospam.com> wrote in message news:%2******************@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
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" <ch***@NOSP-Mobject-zone.net> wrote in message
news:%2******************@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" <je****@nospam.com> wrote in message news:%2******************@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" <ch***@NOSP-Mobject-zone.net> wrote in message news:eJ***************@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" <je****@nospam.com> wrote in message news:%2******************@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
Yeah, the File Explorer behaviour is entirely different. I'm interested to
hear if setting a MIME type corrects your problem.
--Chris
"JerryK" <je****@nospam.com> wrote in message
news:eL****************@TK2MSFTNGP14.phx.gbl... 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" <ch***@NOSP-Mobject-zone.net> wrote in message news:%2******************@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" <je****@nospam.com> wrote in message news:%2******************@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" <ch***@NOSP-Mobject-zone.net> wrote in message news:eJ***************@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" <je****@nospam.com> wrote in message news:%2******************@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 > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Tero Partanen |
last post by:
Hello!
I'm writing about a rather peculiar problem I'm having with
Access2000.
I have a table in which I have created one hyperlink-type field. I
have given the field a default value which is...
|
by: Marco Krechting |
last post by:
Hi All,
Sorry but I have to create new message since it cannot find the old
message to send a reply. Coming back to this hyperlink thing I will
try to explain the real problem cause I think we...
|
by: Ray |
last post by:
I recently upgraded from Access 97 to Access 2003 and just enter some new
data into table via an input form. The form has one hyperlink field to
contain a file path. In Access 2003, it appears...
|
by: Martin Dew |
last post by:
Having some problems getting a hyperlink object to work in my repeater
control, It displays the text I have asked it to for the hyperlink, but it
does not act as a link. My repeater code is below...
|
by: Lan H. Nguyen |
last post by:
I have this line of code in my .aspx page
<asp:HyperLink ID="hrefView" CssClass="main" ForeColor="blue" Runat="server"
NavigateUrl='<%# "View.aspx?id=" + ID.ToString()%>'>View...
|
by: MrMike |
last post by:
I have the following hyperlink webcontrol. The problem is that I can't
figure out how to pass the webform's Request.Querystring("id") param into the
NavigateURL as shown below. As it is currently...
|
by: sloesch |
last post by:
I am working with VS.net 2003, framework 1.1, developing with VB.net,
and ASP.net, and I would like to know how you can create a dynamic
hyperlink on the fly to a document stored in a SQL database?...
|
by: tshad |
last post by:
I had posted this problem earlier and just noticed that the Hyperlink is the
problem.
Apparently, it doesn't figure out the path correctly. It uses the path of
the file it is in, even if it is...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |