Jithil John

Jithil John

  • NA
  • 935
  • 143k

How to get text from DropDownList in .Net-MVC?

Apr 29 2015 1:57 AM
Here is my code : 
@Html.DropDownListFor(model => model.Category, new List<SelectListItem> {new SelectListItem { Text = "Select", Value= "0"},
new SelectListItem { Text = "Creator", Value= "C"},new SelectListItem { Text = "Assignee", Value= "A"},
new SelectListItem { Text = "Reporter", Value= "R"} })

Answers (16)