i have the code:
<%: Html.DropDownListFor(model => model.CompanyName, new SelectList(ViewData["ActiveCompanies"] as IEnumerable, "Id", "Name"))%>
the list is being populated properally with the names etc, but the selected item name is not being bound to the Model.CompanyName (it would be fine if the solution returns the id so i can have something like
<%: Html.DropDownListFor(model => model.CompanyID, new SelectList(ViewData["ActiveCompanies"] as IEnumerable, "Id", "Name"))%>
infact this would be better for my purposes, but it would be really helpful if i could find out why data isnt getting bound.