传递给控制器后,如何在局部视图中获取@ Html.TextBoxFor(modelItem => item.Sales)的值
我的部分观点:
@model IEnumerable<PG.Admin.Models.Items.ItemViewModel>
<table>
<tr>
<th>
@Html.DisplayNameFor(model => model.First().ItemId)
</th>
<th>
@Html.DisplayNameFor(model => model.First().Name)
</th>
<th>
@Html.DisplayNameFor(model => model.First().Sales)
</th>
</tr>
@foreach (var item in Model)
{
<tr>
<td>
@Html.DisplayFor(modelItem => item.ItemId)
</td>
<td>
@Html.DisplayFor(modelItem => item.Name)
</td>
<td>
@Html.TextBoxFor(modelItem => item.Sales)
</td>
</tr>
}
</table>