I want to display a list of images and a description on a webpage using ASP.net MVC. Images are stored in a SQL Server database, and I return them as bytes [].
However, I do not understand how I can display a series of images on a page. I want to do something like this:
<% foreach(Product p in Model.Products)
Response.Write(p.Description)
Response.Write(html.Image(p.ImageArray)
%>
But the only code I saw showed one image ...
thanks
Ben
source
share