I am having difficulty in doing the following and if anyone can give me an idea how I can achieve the following:
Upon a new selection in the dropdown, I call the action Status and passing the selected value in the dropdown as parameter.
I have a dropdown as follows in my view
@Html.DropDownList("Status", Model.DisplayStatus)
In My controller, I am having
private ActionResult Status(string active = "All")
{
UserModel model = new UserModel(active);
return View("Users", model);
}
I would use strongly typed helpers and jquery. Like this:
then a controller:
and finally the view:
and some script to attach to the change event and submit the form: