ASP.NET MVC DropDownListFor does not honour SelectListItem.Selected
问题 I am using DropDownListFor to render a dropdown list in a view. Somehow the rendered list does not select the SelectListItem with Selected set to true . In the controller action: var selectList = sortedEntries.Select(entry => new SelectListItem { Selected = entry.Value.Equals(selectedValue), Text = entry.Value, Value = entry.Id }); return View(new DropDownListModel { ListId = id, SelectList = selectList, OptionLabel = "Click to Select" }); In the view: <%= Html.DropDownListFor(m => m.ListId,