A
Arthur Dent
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.
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.