【发布时间】:2014-07-25 09:46:47
【问题描述】:
我尝试在按钮单击事件中添加一个包含asp:Label 的div。
我使用的以下代码。
代码
string htmlString = "<div><asp:Label ID=\"l1\" runat=\"server\" Text=\"WELCOME\"></asp:Label></div>";
Panel1.Controls.Add(new LiteralControl(htmlString));
但我无法查看特定的div。
请尝试解决这个问题。
提前致谢。
【问题讨论】: