I have got a strange problem. Can somebody look into it please. I have a folder called "img" in my website. I added a new image to it. Now the strange problem is that when I give img/imagename.extension it doesn't display in t开发者_运维技巧he browser.
I have tried even ~/img. But ended nothing. Actually I am using the image in the spark template. I have taken an existing image and tried, it displays the existing image but not the one I have added. I was expecting may be I need to check in the newly added image but even doing that didn't end up the result.
Any ideas????
Thanks
if you using Razor use @Url.Content("~/img/yourimage.ext")
Check if authorisation rules of the folder img prevent the images from being shown e.g. to not authorised users.
Check if the image file was properly added to the solution in the VS.
精彩评论