Question : populate_dropdown_asp.net
Answered by : strange-sloth-5wsfef4uwk1u
<div class="form-group"> @Html.LabelFor(model => model.NumberOfTickets, new { @class = "control-label col-md-2" }) <div class="col-md-10"> @Html.DropDownListFor(model => model.NumberOfTickets) @Html.ValidationMessageFor(model => model.NumberOfTickets) </div> </div>
Source : https://www.faqcode4u.com/faq/204147/asp-net-mvc-how-to-populate-dropdown-list-with-numbers | Last Update : Thu, 25 Aug 22