Static Data Binding in html DropDownList
Static Data
Binding in html DropDownList
@Html.DropDownList("Gender",
new List<SelectListItem> {
new SelectListItem() { Text = "Male", Value = "Male" },
new SelectListItem { Text = "feMale", Value = "FeMale" },
new SelectListItem { Text = "Select
Gender", Value = "Select Gender" }
}, "Select
Gender")
Comments
Post a Comment