Link to home
Create AccountLog in
Avatar of ToString1
ToString1

asked on

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

ASKER CERTIFIED SOLUTION
Avatar of MikeToole
MikeToole
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer