asp.net-mvc – 如何将KendoUI DropDownListFor绑定到ViewData或ViewBag?

asp.net-mvc – 如何将KendoUI DropDownListFor绑定到ViewData或ViewBag?

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

联系我们

联系我们

0577-28828765

在线咨询: QQ交谈

邮箱: xwei067@foxmail.com

工作时间:周一至周五,9:00-17:30,节假日休息

返回顶部