You can use Place Holder to create Controls at Runtime according to the Data into your database.
Use PlaceHolder...
like :
string s1 = "your query ";
SqlDataAdapter ad1 = new SqlDataAdapter(s1,con);
DataSet ds1 = new DataSet();
ad1.Fill(ds1);
if (ds1.Tables[0].Rows.Count != 0)
{
for (int i = 0; i < ds1.Tables[0].Rows.Count; i++)
{
Label l = new Label();
Label lbl = new Label();
l.ID = "l" + i.ToString();
l.ForeColor = System.Drawing.Color.Orange;
lbl.ID = "lbl" + i.ToString();
l.Text = ds1.Tables[0].Rows[i][0].ToString();
lbl.Text = ds1.Tables[0].Rows[i][1].ToString();
PlaceHolder1.Controls.Add(l);
PlaceHolder1.Controls.Add(new LiteralControl("<br />"));
PlaceHolder1.Controls.Add(lbl);
PlaceHolder1.Controls.Add(new LiteralControl("<br />"));
}
}