Answers for "how to creat dropdownlist in razor page using select list item"

1

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" })
Posted by: Guest on March-09-2021

Code answers related to "how to creat dropdownlist in razor page using select list item"

Code answers related to "ActionScript"

Browse Popular Code Answers by Language