Below is my View page code for Html.DropDownList
@Html.DropDownList("ddlHospital", New List(Of<SelectListItem>)
{
New SelectListItem { Text = "H1", Value = "1"},
New SelectListItem { Text = "H2", Value = "2"},
New SelectListItem { Text = "H3", Value = "3"},
}, "Select Hospital")
The above code is showing me an error as : Type expected.
on line :
@Html.DropDownList("ddlHospital", New List(Of<SelectListItem>)
Why ?
Using Visual Studio 2017 Community Edition