I'm having database table which include the urls of images..I tried to retrieve them and display in the cshtml page.But it doesn't display the images.But the Names of each photo is displayed.why is that??

 @foreach (var item in Model)
{
  <img class="img-responsive" src="@item.Image" alt="" style="width:200px;height:200px" />
<h4 class="centered">@item.Name</h4>
}

in the Image column in the table, urls are stored as;

ex:
~/Images/Objects/fitem10.jpg

Related posts

Recent Viewed