G
Guadala Harry
I have a user control that I'm inserting into multiple pages. Part of the
HTML content in the user control is a path to an image:
<img src="../images/arrow.gif" width="11" height="8" border="0">
The image appears just fine when viewed from pages that exist one directory
level below the site root, but not when viewed from pages that exist in the
site root (which is as expected).
What I want to do is be able to specify the path to the image in a way that
it does not matter where in the site's directory the page exists (the page
into which the user control is being inserted).
Specifying the path like this does NOT work:
<img src="~/images/arrow.gif" width="11" height="8" border="0">
So, what can I do?
Thanks!
HTML content in the user control is a path to an image:
<img src="../images/arrow.gif" width="11" height="8" border="0">
The image appears just fine when viewed from pages that exist one directory
level below the site root, but not when viewed from pages that exist in the
site root (which is as expected).
What I want to do is be able to specify the path to the image in a way that
it does not matter where in the site's directory the page exists (the page
into which the user control is being inserted).
Specifying the path like this does NOT work:
<img src="~/images/arrow.gif" width="11" height="8" border="0">
So, what can I do?
Thanks!