Wednesday, October 21, 2015

IIS relative path

<div style="WIDTH: 100%" class="pageTitleSection"><A href="/">
      <img src="Images/logo.png">

if web site setup on virtual directory, you can use web browser F12 key console to see if it can load image file. 'Images" is a folder in the VS project directory,

below dose not work:
img src="../images/logo.png"
img src="/images/log.png"
img src="../../images/log.png"

below worked:
img src="Images/logo.png"
img src="./Images/logo.png"

No comments:

Post a Comment