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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bluenose
    New Member
    • Apr 2012
    • 56

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

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

    Code:
    <img src="Images/image-slider-2.jpg" width="450" height="450" alt="" />
    or this:

    Code:
    <img src="/Images/image-slider-1.jpg" width="450" height="450" alt="" />
    or this:

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

    This, however,

    Code:
    <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.
Working...