--------------------------------------
ur parent div
-------------------------------
ur c# code
Label lbl = new Label();
lbl.Text = "sdg";
System.Web.UI.HtmlControls.HtmlGenericControl mydiv = default(System.Web.UI.HtmlControls.HtmlGenericControl);
mydiv = new System.Web.UI.HtmlControls.HtmlGenericControl("DIV");
mydiv.Controls.Add(lbl);
this. Parentdiv.Controls.Add(mydiv);
|