Post an HTML Table to ADO.NET DataTable
In order to bind to a model on post back, the name attributes of the form controls must match the model properties. Your use of a foreach loop does not generate the correct name attributes. If you inspect the html you will see multiple instances of <input type=”text” name=”item.LeaveType” …/> but in order to bind … Read more