I created a webpage called profile.aspx like that.
<div id="div1">
<asp:Label ID="Label1" runat="server" >
//Name
</asp:Label>
<asp:Label ID="Label2" runat="server">
//Satutes
</asp:Label>
</div>
And this is the profile.aspx.cs file for this file
This select query
cmd.CommandText = "SELECT Name,Status FROM [ProfileStatusPhoto]
WHERE Email = '" + Session["Email"].ToString() + "'";
This is while loop
while (dr.Read())
{
status += dr["Status"].ToString();
name += dr["name"].ToString();
Label1.Text = name;
Label2.Text = status;
}
I have no idea,How to join this loop above div tags?