16
Answers

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

Jithil John

Jithil John

9y
13.2k
1
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)