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)%>


Open in new window

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:
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.