473,498 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

HyperLink control vs. Firefox

Hello all.... i am REally confused by something...

I have a hyperlink control on my page, and for the NavigateUrl property, i
have it set to "~/" in the property window (without the quotes).
Now, in IE this works beautifully, and the hyperlink redirects you to the
root of the web application.
In Firefox however it redirects you simply to the page you are currently on.
If you mouse over the link, the url that comes up in the status bar is the
exact url (including querystring) of whatever page you currently have
loaded.

I do not understand this at all. Isn't ~/ supposed to be resolved by the
control at runtime *on the server-side*?? So how does it come out different
in Firefox vs. IE?
Using ~/ in other controls and properties seems to work fine, (such as the
ImageUrl of the HyperLink and the Image controls). It is only in the
HyperLink.NavigateUrl property that i see this strange behaviour.

Ive seen this now on two different sites that weve done for two different
clients.

Can anyone explain this bizarre behaviour?
Thanks!

- Arthur Dent.
Jun 16 '06 #1
1 1694
"Arthur Dent" <hi*********************@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
I do not understand this at all. Isn't ~/ supposed to be resolved by the
control at runtime *on the server-side*?? So how does it come out
different in Firefox vs. IE?
Ive seen this now on two different sites that weve done for two different
clients.


Did you try stripping everything out of your problematic pages to be sure
the fault was in the HyperLink control? It took me about 45 seconds to slap
together the following test page and prove that it works fine in Firefox
1.5.0.4. I would say that you've simply made the same mistake twice on your
two "different" sites.

<html>
<head><title>Test</title></head>
<body>
<asp:HyperLink
NavigateUrl="~/somewhere/something.htm"
runat="server"
Text="HyperLink Testt" />
</body>
</html>
Jun 17 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
550
by: Ryan Harvey | last post by:
Hi all, I have written a web user control that contains a repeater control. the ItemTemplate for this control is basically 6 Hyperlinks in a row, that are dynamically allocated one of 7 gif...
2
1517
by: Steve Ford | last post by:
I have a datagrid that contains the following template column: <ItemTemplate> <asp:HyperLink ID="partyColour" Runat="server" BackColor='<%#...
1
9161
by: Nathan Sokalski | last post by:
I am using the ImageUrl property of the Hyperlink control to create a graphical Hyperlink. However, I want to change the size of the image I am using, but the generated HTML places the width/height...
2
1875
by: OTSolutions | last post by:
This line of code works in IE but not in Firefox or Netscape for some reason. Any ideas as to why would be appreciated, It is the NavigateURL part. IE brings up the page, the other two...
2
7287
by: Jeff | last post by:
hey asp.net 2.0 I have a HyperLink control on my webpage, I want this HyperLink to display a underline when mouse is hovering over it. This is NOT a html link, but a...
7
7032
by: ashtek | last post by:
I have an <ASP:HYPERLINKon a datagrid (templatecolumn) and I need to open a new window with no toolbar and specific height & width onclick of the link. I also want to pass the PK to this new...
20
2970
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...
5
8783
LAD
by: LAD | last post by:
Using Access 2003 on Windows 2000. My Skill Level: Med Low (Some VBA, okay with Access) Form: Single View - based on Query of single Table to sort by field. Application: Dealers email 'contract...
1
4162
by: MistryP | last post by:
Hey Everyone, I m developing website in ASP.net and i am using Hyperlink control in this website but it is not working in Firefox browser but working in Internet Explorer. My code is: ...
0
7125
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7205
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6887
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7379
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4910
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4590
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3093
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1419
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
656
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.