Reputation: 678
I have a webpage in asp.net mvc. And, it simply displays a picture from the images folder. When I'm working on the local machine, it works fine but after I publish it to the website, image is shown as broken.
I checked the server and it seems like the picture uploaded to wwwroot/myapplication/images
My code for showing the image is:
<img src='@Url.Content("~/images/super.png")' />
Upvotes: 0
Views: 2882
Reputation: 9881
Unless you have a typo in the question, the images were uploaded to /image
, but the <img src
is pointing to /images
Upvotes: 1