User controls --> Relative/Absolute Paths

M

matt.grande

Hi all,

I have a user control in the folder MyWebSite/UserControls. It links
to images thusly:
<img src="../Images/logo.gif" />

This works fine for most of my files, as they are in the folder
MyWebSite/SCRSource, however some are in MyWebSite/SCRSource/EditUser.

How can I make the IMG tag work relative to where it is?

Also, should I be using <asp:Image>? How does this work with, for
example, mouseover Javascript that's in the anchor tag?

Thanks,
- Matt.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,710
Latest member
bernietqt

Latest Threads

Top