0
我有一个html表生成在我的视图中,没有人知道任何助手可用,我可以使用,以便其中一个字段可以编辑内联。MVC Html助手使标签可编辑
查看:
<table>
<caption>Configuration values for current management group</caption>
<thead>
<tr>
<th scope="col">Device Type</th>
<th scope="col">Section</th>
<th scope="col">Name</th>
<th scope="col">Value</th>
<th scope="col">Operation</th>
</tr>
</thead>
<tbody>
@foreach (var param in Model.ParamData)
{
<tr>
<td>@param.DeviceType</td>
<td>@param.Group</td>
<td>@param.Name</td>
<td>@param.Value</td>
<td>@(param.IsMerge ? "Merge" : "Delete")</td>
</tr>
}
</tbody>
</table>
正如你可以看到有什么特别在这里,我想编辑栏会以类似的方式工作,以网页形式的GridView。唯一要编辑的字段将是值,并且它始终是一个文本框。
我确信人们必须在已经这样做了,但香港专业教育学院在网上看到的唯一的例子是为MVC 1
我可以使用jQuery敲东西了,但我肯定有一定的例子已经负载和不想要重新发明轮子。