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:
JavaScript
var listGenders = ListGenders(); var dropDownGenders = new SelectList(listAgencies, "ID", "Name", 1);
ViewData["Genders"] = dropDownGenders;
In the view:
<div class="editor-label">
Gender
</div>
<div class="editor-field">
<%= Html.DropDownListFor(model => model.GenderID, ViewData["Genders"] as IEnumerable<SelectListItem>)%>
</div>
Answers
Know the answer? Post it. Somebody with the same question will find it here.