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

Popular posts from this blog

Kendo Control(Dynamics)

Override Authorize Filters in MVC

Form Validation