0
是否可以在cshtml 中顯示普通html下拉列表的模型,還是應該單獨使用ajax?什麼是最好的選擇? 將模型顯示到非剃鬚刀下拉列表
@foreach (var item in Model)
{
<tr>
<td>@Html.DisplayFor(modelItem => item.ReservationId)</td>
<td>@Html.DisplayFor(modelItem => item.ReservationStartDate)</td>
<td>@Html.DisplayFor(modelItem => item.ReservationEndDate)</td>
<td>@Html.DisplayFor(modelItem => item.ReservationAdult)</td>
<td>@Html.DisplayFor(modelItem => item.ReservationChildren)</td>
<td>@Html.DisplayFor(modelItem => item.ReservationRoomDesc)</td>
<td>@Html.DisplayFor(modelItem => item.ReservationRoomType)</td>
<td><select id="hotelroom" name="cs3" class="cs3 form-control input-small"></select></td>
<td>@Html.DisplayFor(modelItem => item.ReservationRoomStatus)</td>
<td><input type="button" id="editTable"></td>
</tr>
}