Display Image from source folder

时间:2018-11-16 21:44:47

标签: html asp.net

I'm trying to display images that are stored in the source folder of my project. However when i try to display them using

<img src="Image.png" alt="Displaying Image">

It simply shows me the alt text instead of the image. I've tried absolute path aswell but that does not change anything either.

I've searched other threads but nothing made me figure out what my problem is even though this seems simple.

Thanks in advance

Jan

1 个答案:

答案 0 :(得分:0)

我缺少一个“ /”。我的路应该是这样的:

<img src="/Image.png" alt="Displaying Image"