asp.net - Can not find image path in web application -
i using asp.net mvc 4.0 application. using ii7/ii8. have configured web application under following way in iis in following way
default web site\mywebapp
when trying browser page in local machine http://localhost/home in following image rendered. image surely available @ /content/images/ not loaded properly, when in browser inspect element , alter path /mywebapp/content/images/ loading image properly.
<img alt="close" style="cursor: pointer;" src="/content/images/ic-delete.png" onclick="closepopup('dvclose');">
while in live server iis , have website www.xxx.yzx , when trying browse www.xxx.yzx/home loading image properly
i trying somthing don't want bother change path(remove mywebapp) of image when deplying. don't want move application default site
what loading image in local machine?
posting comment answer:
~/content/images/ic-delete.png try src.
Comments
Post a Comment