Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i'm new in MVC i need code to display my containers(with images) side by side straight from a database, everytime there's an addition in the database, data appears in a new container. just like the product items in the amazon index page


What I have tried:

i've tried
@foreach (var item in Model)
{
Posted
Updated 21-Jun-22 7:20am

1 solution

I assume you're using bootstrap, so you have to research how child elements are laid out in bootstrap.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900