I\'m new to .net and mvc platform, i have so many int fields that stores some dropdownlist values, i\'ve created fields int type due to database size so i\'m implementing dr
I haven't used Razor syntax yet (still on MVC2), but I believe this part is wrong:
@Html.DropDownListFor(model => model.Property.City,
new SelectList(Model.Cities,"Value","Text"))
You need to tell the view engine what values to populate the select
list with (the value
attribute and text associated with the option
element), but I don't know the correct MVC3 syntax to help you fix it. Hopefully someone else can...