Step 1

Create a table for storing your Image (Product) information, such as ProductID, Name ,Price, Quantity etc., which you want to show as product details on the homepage of a shopping cart.
Step 2

Create a web form for your web application.

Import Bootstrap line or manage NuGet packages to install bootstrap in your web form (right-click on web application --> Manage NuGet Packages-->install bootstrap).
LINQ

Step 3

Add repeater in your form,
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head runat="server">
  4. <link href="Content/bootstrap.css" rel="stylesheet" />
  5. <title></title>
  6. <style>
  7. well{
  8. margin-top:20px;
  9. padding:2px,2px,2px,2px;
  10. }
  11. </style>
  12. </head>
  13. <body>
  14. <form id="form1" runat="server">
  15. <div class="container" style="margin-top:10px">
  16. <div class="row">
  17. <asp:Repeater ID="RepeatImages" runat="server">
  18. <ItemTemplate>
  19. <div class="col-md-3">
  20. <div class="well" style="height:350px; width:350px;">
  21. <asp:Image ID="Image" runat="server" CssClass="align" style="height:200px; width:100%" ImageUrl='<%# DataBinder.Eval(Container,"DataItem.Image") %>' />
  22. <asp:Label ID="Label1" runat="server" Text='<%# DataBinder.Eval(Container,"DataItem.ImageID") %>'></asp:Label><br />
  23. </div>
  24. </div>
  25. </ItemTemplate>
  26. </asp:Repeater>
  27. </div>
  28. </div>
  29. </form>
  30. </body>
  31. </html>
Step 4

Now, add model to access database (right click on web application --> add new item-->ADO.NET entity data model (model.edmx)).
LINQ
Add model1.edmx

LINQ
Create new connection Add database (Entity).

LINQ
Choose table

LINQ

By finishing this you will get access to your database.
Step 5

Fetch the data from table to send it to repeater,
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Linq;
  5. using System.Web;
  6. using System.Web.UI;
  7. using System.Web.UI.WebControls;
  8. using upload_image.model;
  9. namespace upload_image
  10. {
  11. public partial class repeater : System.Web.UI.Page
  12. {
  13. userEntities db = new userEntities();
  14. protected void Page_Load(object sender, EventArgs e)
  15. {
  16. var data = (from a in db.ImageUploads select a).ToList();
  17. RepeatImages.DataSource = data;
  18. RepeatImages.DataBind();
  19. }
  20. }
  21. }

I am using LINQ for fetching data.

var data = (from a in db.ImageUploads select a).ToList();

Now, you will get UI as follows,

LINQ
You can design more using external CSS as well.

Thank you.