I've been populating the comboboxes using a method I have successfully used in other views, where it works like a charm, so I'm at a loss where I have my problem at the moment.
Here is how I fill the data in the controller:
var listGenders = ListGenders(); var dropDownGenders = new SelectList(listAgencies, "ID", "Name", 1);Does anyone here have an idea?
ViewData["Genders"] = dropDownGenders;
In the view:
Gender
<%= Html.DropDownListFor(model => model.GenderID, ViewData["Genders"] as IEnumerable
)%>

Replies
Know the answer? Post it — somebody with the same question will find it here.