razor page display list in select code example
Example: how to creat dropdownlist in razor page using select list item
@Html.DropDownList("ReportType", new List<SelectListItem>{
new SelectListItem { Text = "Summary", Value = "summary" },
new SelectListItem { Text = "Detail", Value = "detail" }
}, "Select Report Type", new { @class = "form-control", @required = "required" })