Hi ramco1917,
Please refer below sample.
HTML
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" />
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
<h1>Why-Why Analysis</h1>
<hr />
<b><u>Customers Data</u></b>
<asp:Repeater ID="rptCustomers" runat="server">
<ItemTemplate>
<div class="row">
<div class="col-lg-9 col-sm-9 col-xs-9 col-md-9">
<div class="row">
<div class="col-lg-3 col-sm-3 col-xs-3 col-md-3">
<i class="fa fa-arrow-right" style='font-size: 12px; margin-right: 5pt'></i><span>CustomerId:</span>
</div>
<div class="col-lg-9 col-sm-9 col-xs-9 col-md-9">
<asp:Label ID="lblCustomerID" runat="server" Text='<%#Eval ("Fileid") %>'></asp:Label>
</div>
</div>
<div class="row">
<div class="col-lg-3 col-sm-3 col-xs-3 col-md-3">
<i class="fa fa-arrow-right" style='font-size: 12px; margin-right: 5pt'></i><span>Name:</span>
</div>
<div class="col-lg-9 col-sm-9 col-xs-9 col-md-9">
<asp:Label ID="lblName" runat="server" Text='<%#Eval ("Name") %>'></asp:Label>
</div>
</div>
<h3><u>Effect Of incident</u></h3>
<p>In above data, The Customers Details fetched from database table.</p>
<p>Refer customers data.</p>
</div>
<div class="col-lg-3 col-sm-3 col-md-3 col-xs-3">
<img src='<%# Eval("Path").ToString().Replace("~","") %>'
alt="image" height="100" width="100" style="border: 5px solid black" />
</div>
</div>
</ItemTemplate>
</asp:Repeater>
Namespace
using System.Data.SqlClient;
Code
protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
this.BindImage();
}
}
private void BindImage()
{
string constring = @"Server=.\SQL2019;DataBase=dbFiles;UID=sa;PWD=Password";
using (SqlConnection con = new SqlConnection(constring))
{
using (SqlCommand cmd = new SqlCommand("SELECT Top 1 Fileid,Name,Path FROM Files", con))
{
con.Open();
rptCustomers.DataSource = cmd.ExecuteReader();
rptCustomers.DataBind();
con.Close();
}
}
}
Screenshot