<table id="list" cellspacing="0" cellpadding="0"> <tr> <th> @Html.DisplayNameFor(model => model.Date) </th> <th> @Html.DisplayNameFor(model => model.CategoryID) </th> <th> @Html.DisplayNameFor(model => model.TimeTaken) </th> <th> @Html.DisplayNameFor(model => model.Comments) </th> <th> </th> </tr> @for (int i = 0; i < 10; i++) { <tr> <td> @Html.TextBoxFor(model => model.Date, new { @id = "date" + i, @class = "datepicker" }) </td> <td> @Html.DropDownListFor(model => model.CategoryID, (IEnumerable<SelectListItem>)ViewData["categories"], new { @id = "category" + i }) </td> <td> @Html.TextBoxFor(model => model.TimeTaken, new { @id = "time" + i, @class = "time" }) </td> <td> @Html.TextBoxFor(model => model.Comments, new { @id = "comments" + i }) </td> </tr> } </table>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)