Image display on MVC view

You have specified an absolute path which doesn’t exist on the client computer. Try like this:

<img src= "https://stackoverflow.com/questions/5248273/@Url.Content("~/uploads/FileUpload12011_03_02_11_49_22.jpg")" alt="IMAGES" />

or if your model variable contains “~/uploads/FileUpload12011_03_02_11_49_22.jpg” you could:

<img src= "https://stackoverflow.com/questions/5248273/@Url.Content(Model.PictureLocation)" alt="IMAGES" />

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)