If you want to have a dropdownlist list containing a range of numerical values here's how to do it:
Source: http://stackoverflow.com/questions/12070363/dropdown-list-asp-mvc
@{ var values = new SelectList(Enumerable.Range(0, 60)); } @Html.DropDownListFor(model => model.NoOfUserAccounts,values) @Html.DropDownListFor(model => model.NoOfUserAccounts)s)
No comments:
Post a Comment