This is my first time doing mvc, so I don’t know a lot of things! ! ! !
The path I dragged into this picture is correct! ! !
But it just can’t be displayed:
Baidu said yes
<img src="@Url.Content("logo-gif.gif")" />
Written like this, but it still doesn’t show up! ! !
Please help me, thank you!
The website cannot access the contents of the Views folder by default.
But it can be changed.
There is a web.config file under Views, and the following code in it prevents request processing in the Views folder
Oh. It’s been solved. It’s weird. Pictures can’t be placed under the sharepage folder. I just create a new folder. -_-||