Calling User Controls from pages within different directories
Posted on 2003-11-27
I have an aspx file in the root of my application which calls a user control also sat in the root of my application.
My user control references images in an image directory off of the root. Example...
<img src="Images/MyPicture.jpg" - Everything works fine
If I call the same user control from an aspx page within a sub directory off of the root the user control obviously doesn't locate the images because it is looking for a directory called images in the sub directory I am currently in - It is not going back to the root
Anyone a solution without having to create another user control with a different path for the image