开发者

problem with image display in visual studio

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")


  1. Check if authorisation rules of the folder img prevent the images from being shown e.g. to not authorised users.

  2. Check if the image file was properly added to the solution in the VS.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜