I have this annoying problem where my DropDownlist doesn\'t select the current value by default.
Controller:
var YearsCycling = new SelectList(new Li
Binding dropdownlist is very tricky in MVC it embarrassed me a lot you can do it with this in your controller get all your cities list put it in viewBag
Create
ViewBag.CityId = new SelectList(db.Cities, "ID", "Name");
user.CityID if you are in Edit so that on edit it select the city
ViewBag.CityId = new SelectList(db.Cities, "ID", "Name", user.CityID);
in your View just do this trick
@Html.DropDownList("CityId", "Select")
this is the most simplest way I know....