I have an ASP.NET MVC application with a lot of dropdowns and multiple choice lists. In fact, many lists of options.
My question is: is it better to pass these lists to the view as part of the Model or as ViewData?
I am currently passing them as ViewData, since they really don't need them in the model, and they seem potentially cumbersome to go through the model (I get the selected item or items, which is really all I need). ViewData, on the other hand, requires casting in a view, which is not as good as a strongly typed model.
Is there any best practice here? Even the ideas of the pros and cons for any of them would be appreciated.
asp.net-mvc model multi-select
Fenton
source share