【发布时间】:2013-05-18 16:21:13
【问题描述】:
我可以在 asp.net MVC 中使用 HtmlTable 类吗?
我在 Controller 类中创建了 HtmlTable 对象:
var Table1 = new HtmlTable();
如何在网页中查看?
当我在 Controller 类中使用:PlaceHolder1.Controls.Add(Table1);
和
<asp:placeholder id="PlaceHolder1" runat="server"></asp:placeholder> in index.cshtml
我有警告“无法识别的命名空间'asp'”
如何从 Controller 类绑定 PlaceHolder1 和从 View 绑定 placeholder id="PlaceHolder1"?
【问题讨论】:
标签: asp.net-mvc asp.net-placeholder htmltable-control