Currently, I am working with ASP.NET MVC1 and am still learning about Model Binding and how values from a View are passed back to the Controller / Model. Specifically, I want take an existing Model, create a Table and populate the Rows of the Table, allow the user to edit some fields and pass it back.
In my example, I have a Class called "Ingredient" which has 4 public accessors: Name, Barcode, Amount, and Unit
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<MvcACE.DomainModel.Entities.Ingredient>>" %>
<% using (Html.BeginForm("SubmitOrder","MyController"))
<% if (Model != null)
foreach (var item in Model)
View Complete Post