我可以在 asp.net MVC 中使用 HtmlTable 类吗?
我在 Controller 类中创建了 HtmlTable 对象:
var Table1 = new HtmlTable();
如何在网页中查看?
当我使用:
PlaceHolder1.Controls.Add(Table1);
在 Controller 类
和
<asp:placeholder id="PlaceHolder1" runat="server"></asp:placeholder>
index.cshtml 中,
我有警告“ Unrecognized namespace 'asp' ”如何从 Controller 类和View
绑定?PlaceHolder1
placeholder id="PlaceHolder1"