• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 176
  • Last Modified:

User control does not contain images

I created a user control and I placed it in a folder called controls.  But, when I place the control on a web page, the images for the control are missing.  How do I rectify this problem?  As an fyi, the images are placed into a folder called images but the page that I placed the user control on is in the root directory.
2 Solutions
Paul JacksonCommented:
ensure the path to your images is specified like : "~/images/myImage.gif", the use of the ~ ensures the path starts at the root of your website.

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now