all groups > asp.net building controls > september 2003 >
You're in the

asp.net building controls

group:

url problem?


url problem? SStory
9/24/2003 5:25:23 PM
asp.net building controls: I made a header control with built in menu. It works great. It is in the
root dir.
Then I made some files in a subdir to protect them.

When I place the header control on them, it of course can't go to the
root/images directory to get it without ../images/whatever

is there a way to make the control always know how to get it from
myroot/images/whatever?

NO matter what page or what directory it was in.

I will be using an ISP and hear at home--two different names, so I wanted to
avoid absolute root dir names.

Thanks.

Re: url problem? John Saunders
9/24/2003 11:35:38 PM
[quoted text, click to view]

Try "~/images/whatever.gif.
--
John Saunders
Internet Engineer
john.saunders@surfcontrol.com

Re: url problem? SStory
9/25/2003 8:45:03 AM
Excellent!
Thanks John.
Seems to work great.

Shane

[quoted text, click to view]

AddThis Social Bookmark Button