repeater control
<asp:Repeater ID="Repeater1" runat="server">
<ItemTemplate>
<div class="col-lg-3">
<img src='http://dento247.com/precision/docpic/<%# Eval("pic") %>' style="width: 73px; height: 78px;"><br>
<asp:Label ID="Label1" runat="server" Text='<%# Eval("name") %>'></asp:Label><br>
<asp:Label ID="Label2" runat="server" Text='<%# Eval("email") %>'></asp:Label><br>
<asp:Label ID="Label3" runat="server" Text='<%# Eval("mobile") %>'></asp:Label><br>
<asp:Label ID="Label4" runat="server" Text='<%# Eval("regno") %>'></asp:Label>
<hr>
</div>
</ItemTemplate>
</asp:Repeater>
--------------------------------------------------------------------------------------------------------------------------
protected void bindRepeater()
{
string cs = ConfigurationManager.AppSettings["doctor_DB"];
cn = new SqlConnection(cs);
cn.Open();
string status="approved";
string k = "select * from regtb where status='" + status + "'";
cm = new SqlCommand(k, cn);
DataSet ds = new DataSet();
SqlDataAdapter da = new SqlDataAdapter(cm);
da.Fill(ds);
Repeater1.DataSource = ds;
Repeater1.DataBind();
cn.Close();
}
<ItemTemplate>
<div class="col-lg-3">
<img src='http://dento247.com/precision/docpic/<%# Eval("pic") %>' style="width: 73px; height: 78px;"><br>
<asp:Label ID="Label1" runat="server" Text='<%# Eval("name") %>'></asp:Label><br>
<asp:Label ID="Label2" runat="server" Text='<%# Eval("email") %>'></asp:Label><br>
<asp:Label ID="Label3" runat="server" Text='<%# Eval("mobile") %>'></asp:Label><br>
<asp:Label ID="Label4" runat="server" Text='<%# Eval("regno") %>'></asp:Label>
<hr>
</div>
</ItemTemplate>
</asp:Repeater>
--------------------------------------------------------------------------------------------------------------------------
protected void bindRepeater()
{
string cs = ConfigurationManager.AppSettings["doctor_DB"];
cn = new SqlConnection(cs);
cn.Open();
string status="approved";
string k = "select * from regtb where status='" + status + "'";
cm = new SqlCommand(k, cn);
DataSet ds = new DataSet();
SqlDataAdapter da = new SqlDataAdapter(cm);
da.Fill(ds);
Repeater1.DataSource = ds;
Repeater1.DataBind();
cn.Close();
}