📜  c# codebehind Append div - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:56.936000             🧑  作者: Mango

代码示例1
HtmlGenericControl divcontrol = new HtmlGenericControl();
 divcontrol.Attributes["class"] = "sxro sx1co";
 divcontrol.TagName = "div";
 pnlUserSearch.Controls.Add(divcontrol);
 Label question = new Label();
 questionDescription.Text = "text";
 pnlUserSearch.Controls.Add(question);