By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,946 Members | 745 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,946 IT Pros & Developers. It's quick & easy.

Correct path to image in Solution Explorer (VS 2013)?

P: 56
What is the correct path please to reference an image that is held in my Images folder in VS 2013? This does not work:

Expand|Select|Wrap|Line Numbers
  1. <img src="Images/image-slider-2.jpg" width="450" height="450" alt="" />
or this:

Expand|Select|Wrap|Line Numbers
  1. <img src="/Images/image-slider-1.jpg" width="450" height="450" alt="" />
or this:

Expand|Select|Wrap|Line Numbers
  1. <img src="~/Images/image-slider-1.jpg" width="450" height="450" alt="" />
  2.  
The Web page that should display the photo is in the default Account folder at the top of Solution Explorer.

This, however,

Expand|Select|Wrap|Line Numbers
  1. <img src="/Images/image-slider-1.jpg" width="450" height="450" alt="" />
does work where the Web page is not in its own folder.

Thank you.
Dec 19 '17 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.