razor html dropdown list 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" })