I am following few tutorials for creating MVC3 application.
I saw example of adding dropdownlist bound to a model.
@Html.DropDownListFor(model => model.Vehicle.Model, new List<SelectListItem>(), String.Empty, new { style = "width: 100px;", size = "1" })
But i just want to add few contant values i.e. not coming from the DB, but just want to add few items to dropdownlist in code, how can i do it?
1 Answer