2
@Html.DropDownListFor(model => model.title, (SelectList)ViewBag.NoVList, new { id = "natureOfVisit", @class = "text white" })
如何向此DropDownListFor添加deafult值。我的意思是當用戶打開彈出窗口來編輯模型,在這個下拉列表中,從下拉框中選擇當前的model.title值。Deafult value loading爲HTML.DropDownListFor
歡迎您:) – karaxuna