.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

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -