Hello,
I need some help in displaying Images in grid style using Asp.net MVC razor.
Here's what i have tried:-
-- Controller--
public ActionResult Index()
{
return View(db.Img_data.ToList());
}
--Razor View--
@using firstmvc.Models
@model IEnumerable
@{
ViewBag.Title = "Index";
Layout = "~/Views/Shared/Adminmaster.cshtml";
}
And the result of the code in browser is :- http://prntscr.com/byyv9b
How i want to display the image is :-http://prntscr.com/byyvl5
Cheers

Guest UserRank #816 · 2.8K reputationPosted Jul 29, 2016, 1:22 AM EDT
Jitendra KumarRank #760 · 3K reputationPosted Jul 29, 2016, 3:46 AM EDT
Luis sa4 reputationPosted Aug 1, 2016, 10:29 PM EDT