M
Martyn Fewtrell
This is one that has had me puzzled for some time and although I assume that
the solution is relatively straight forward but I haven't yet seen an
example or solution or managed to work one out.
If you create a user control for header, navbar etc the hyperlinks only work
if the relative location is correct for all the pages using the user
control. I am aware that using the asp:hyperlink control you can set the
link information within the code (I'm using VB.Net). However the MapPath
statement provides a path to the drive letter which is not particularly
useful in passing to a hyperlink. I know that the ResolveURL calculates
relative URL's but I don't seem to be able to apply that to the MapPath
option.
Once again I am sure that there is a simple solution but I do find it
strange that I have never seen it implicated on any sample code etc.
All help appreciated.
Martyn Fewtrell
(e-mail address removed)
the solution is relatively straight forward but I haven't yet seen an
example or solution or managed to work one out.
If you create a user control for header, navbar etc the hyperlinks only work
if the relative location is correct for all the pages using the user
control. I am aware that using the asp:hyperlink control you can set the
link information within the code (I'm using VB.Net). However the MapPath
statement provides a path to the drive letter which is not particularly
useful in passing to a hyperlink. I know that the ResolveURL calculates
relative URL's but I don't seem to be able to apply that to the MapPath
option.
Once again I am sure that there is a simple solution but I do find it
strange that I have never seen it implicated on any sample code etc.
All help appreciated.
Martyn Fewtrell
(e-mail address removed)