Click to See Complete Forum and Search --> : Pass ID of selected dropdownlist value to controller
Techno
Aug 11th, 2011, 06:03 AM
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.
jmcilhinney
Sep 1st, 2011, 08:51 PM
Are you not posting a form?
Nightwalker83
Sep 2nd, 2011, 03:52 AM
Not sure if this (http://mvcmusicstore.codeplex.com/) example will be of use.
Techno
Sep 2nd, 2011, 03:55 AM
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.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.