.net - Image path on ASP.NET doesn't work -


image path on publish project in asp.net doesn't work.

this image path: var imgsrc = "~/images/markers";

in markers folder, have icons want display depending on logged-in user. works fine on local it's not working when publish project on iis.

two reasons :
1. give path "/images/markers" instead of "~/images/markers".
or
2. check @ published directory image exist or not,some time after publish image not copied so.


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -