foreach (var item in Model)
{
<tr>
<td class="well"> @Html.TextBoxFor(m => item.UserMaster.D1, new { @class = "form-control" })</td>
<td class="well"> @Html.TextBoxFor(m => item.UserMaster.D2, new { @class = "form-control" })</td>
<td class="well"> @Html.TextBoxFor(m => item.UserMaster.D3, new { @class = "form-control" })</td>
<td class="well"> @Html.TextBoxFor(m => item.UserMaster.D4, new { @class = "form-control" })</td>
<td class="well"> @Html.TextBoxFor(m => item.UserMaster.D5, new { @class = "form-control" })</td>
<td class="well"> @Html.TextBoxFor(m => item.UserMaster.D6, new { @class = "form-control" })</td>
<td class="well"> @Html.TextBoxFor(m => item.UserMaster.D7, new { @class = "form-control" })</td>
<td class="well"> @Html.TextBoxFor(m => item.UserMaster.D8, new { @class = "form-control" })</td>
</tr>
}
I am want to make these textbox inside for loop how to possible
Anonymous User
09-Jul-2015Gaurpriya Bishnoi
07-Jul-2015But i am face problem in model binding
In above code every textbox is bind same column name (D1).
But i am want to every textbox is bind different different column like(D1, D2, D3)...etc
please solve this problem as soon soon
Anonymous User
07-Jul-2015