在 ASP.net 核心中使用 BeginCollectionItem
Using BeginCollectionItem in ASP.net Core
我无法在 asp.net 内核中使用 Steve Anderson 的 BeginCollectionItem。当我使用
时,我的部分视图出现错误
@using (Html.BeginCollectionItem("Entries"))
{
}
类型 'HtmlHelper' 在未引用的程序集中定义。您必须添加对程序集 'System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' 的引用。
是否有其他方法可以在 ASP.net 核心中实现 BeginCollectionItem 的功能?
我移植了原始的 BeginCollectionItem 以与 ASP.Net Core on .Net Core 和 .Net Framework 4.6+ 一起工作。
我无法在 asp.net 内核中使用 Steve Anderson 的 BeginCollectionItem。当我使用
时,我的部分视图出现错误@using (Html.BeginCollectionItem("Entries"))
{
}
类型 'HtmlHelper' 在未引用的程序集中定义。您必须添加对程序集 'System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' 的引用。
是否有其他方法可以在 ASP.net 核心中实现 BeginCollectionItem 的功能?
我移植了原始的 BeginCollectionItem 以与 ASP.Net Core on .Net Core 和 .Net Framework 4.6+ 一起工作。