I want to create a static dropdownlist as such
@Html.dropdownlist("Category", new List<SelectListItem>
{
new SelectListItem{value = "1", Text = "All"},
new SelectListItem{value = "2", Text = "Amy" }
})
I want to map this category to my object class so that I am able to access that attribute when running the query at my query page and do a switch-case in order to do different things based on different dropdownlist items selected.
Please help.
Thanks in advance.