MVC2 Use selected item from dropdown list to filter listview

I have a dropdown list below and want to pass the ID of  whatever is selected in the dropdown to a controller action that filtered a list of items using the ID.

An example would be good please.


<%= Html.DropDownList("ItemList", Model.ItemList)%>

//controller

Open in new window

ToString1Asked:
Who is Participating?
 
MikeTooleConnect With a Mentor Commented:
This post happens to use linq to sql to populate the model, but the use of the selected item in the controller looks like what you want:
http://ittecture.wordpress.com/2009/05/10/tip-of-the-day-208-asp-net-mvc-populating-dropdownlists-using-linq-to-sql/
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.