Skip to content

This Html Helper leverages the default model binder in ASP.NET MVC Core and higher to materialize viewmodel collection properties from an HTTP POST and is based on Stevens Anderson BeginCollectionItem

License

Notifications You must be signed in to change notification settings

phobos04/BeginCollectionItemCore

 
 

Repository files navigation

BeginCollectionItemCore

Usage

@using HtmlHelpers.BeginCollectionItemCore;
@model BeginCollectionItemCoreDemo.ViewModels.OrderItemModel


@using (Html.BeginCollectionItem("orderItems"))
{
    @Html.LabelFor(x => x.Title);
    @Html.EditorFor(x => x.Title);
    @Html.LabelFor(x => x.Quantity);
    @Html.EditorFor(x => x.Quantity);
}

About

This Html Helper leverages the default model binder in ASP.NET MVC Core and higher to materialize viewmodel collection properties from an HTTP POST and is based on Stevens Anderson BeginCollectionItem

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 75.5%
  • HTML 21.1%
  • CSS 2.2%
  • JavaScript 1.2%