I have this line of code in my view but it doesn't work. It keeps throwing this error:
The ViewData item that has the key 'Material.Modelo.Categoria.Familia_Id' is of type 'System.Int32' but must be of type 'IEnumerable'
<%= Html.DropDownListFor(model => model.Material.Modelo.Categoria.Familia_Id,
Model.Familias,
" -- Seleccione -- ")%>
Model.Familias is actually a SelectList and model.Material.Modelo.Categoria.Familia_Id is an integer.
Any ideas?
Thnx