Question : create div tag in c#

hello i want create the div tag via c#.net code.. i have a parent div and i want to create the div dynamically and append those div to my parent div. . please reply soon its urgend

Answer : create div tag in c#

if u want to add it to other div, or add any controls add any controls to it u can


 


1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
--------------------------------------      
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);
Random Solutions  
 
programming4us programming4us