I am creating a dynamic html content using StringBuilder and i want to know how to append inside of UpdatePanel in asp.net?

Code:

StringBuilder sb = new StringBuilder();
sb.Append("<div>Hello World</div>");

UpdatePanel panel = new UpdatePanel();
panel.Controls.Add(sb); // Can't add stringbuilder in update panel. 

How we can add dynamic html codes into the updatepanel?

Related posts

Recent Viewed