/ Published in: C#
Append html to a div tag (using System.Web.UI.HtmlControls)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
div.Controls.Add(p); /**************************** <html> <head> </head> <body> <div id="elem" runat="server"> </div> </body> </html> ****************************/
URL: http://www.devcurry.com/2009/01/dynamically-create-tag-using-server.html