hello,
i am using this snippet
when i replace dropdown helper to listbox like this so it gives error
The parameter 'expression' must evaluate to an IEnumerable when multiple selection is allowed.
@Html.DropDownListFor(m => m.CountryId, Model.Countries, "Please select")
change to
@Html.ListBoxFor(m => m.CountryId, Model.Countries, "Please select")
pls advice instead of dropdownlist i want listbox