if I have a dropdownlist and the user selects an item, I want to pass the item ID to a controller action from a Buttonactionlink
how is this possible?
using MVC 2.0 here.
Printable View
if I have a dropdownlist and the user selects an item, I want to pass the item ID to a controller action from a Buttonactionlink
how is this possible?
using MVC 2.0 here.
Are you not posting a form?
Not sure if this example will be of use.
thanks all.
Well, the post will happen when the user clicks on the action button link. But I want the action button link to generate the link based on the id of the item in the dropdownlist so it posts to the correct page with the correct data i.e: /edit/user/1 - the "1" will be the ID from the dropdownlist the user has selected.