abby
abby

Reputation: 678

images are not displaying after publish

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

Answers (1)

Andy T
Andy T

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

Related Questions