- 2025年06月28日
- 星期六
我正在尝试使用KendoUI DropDownListFor作为我的模型外键并将其与ViewData / ViewBag完整列表绑定但似乎无法正常工作,我错过了什么? @(Html.DropDownListFor(model = model.Hotel.HotelStatusId, ViewData[HotelStatuses] as SelectList)) 这似乎工作,但要求
我正在尝试使用KendoUI DropDownListFor作为我的模型外键并将其与ViewData / ViewBag完整列表绑定但似乎无法正常工作,我错过了什么? @(Html.DropDownListFor(model = model.Hotel.HotelStatusId, ViewData[HotelStatuses] as SelectList)) 这似乎工作,但要求