@Html.DropDownListFor how to set default value [duplicate]
This question already has an answer here: MVC5 - How to set “selectedValue” in DropDownListFor Html helper 3 answers @Html.DropDownListFor(model => model.Status, new List<SelectListItem> { new SelectListItem{Text="Active", Value="True"}, new SelectListItem{Text="Deactive", Value="False"}}) In view I am using this drop dowenlist coding. I run my application default deactive value is display in dropdown list box. I want display default Active Like this: @Html.DropDownListFor(model => model.Status, new List<SelectListItem> { new SelectListItem{Text="Active", Value="True"}, new SelectListItem{Text