J
Jonathan Wood
I am creating some custom links via code on my Web site.
One problem I have is that I might write a link as /Images/img.gif. On my
Web site, that should work find. But on my local test computer, it is wrong
because / actual refers to the root of my developer server folder.
What I really want is ~/Images/img.gif but I'm not using a label control. Is
there a function that will take ~/Images... and change it to be the path off
my project's root dir? Perhaps the same routine called by the label
controls, etc?
Thanks for any tips.
One problem I have is that I might write a link as /Images/img.gif. On my
Web site, that should work find. But on my local test computer, it is wrong
because / actual refers to the root of my developer server folder.
What I really want is ~/Images/img.gif but I'm not using a label control. Is
there a function that will take ~/Images... and change it to be the path off
my project's root dir? Perhaps the same routine called by the label
controls, etc?
Thanks for any tips.