|
-
Aug 11th, 2011, 06:03 AM
#1
Thread Starter
PowerPoster
Pass ID of selected dropdownlist value to controller
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.
-
Sep 1st, 2011, 08:51 PM
#2
Re: Pass ID of selected dropdownlist value to controller
Are you not posting a form?
-
Sep 2nd, 2011, 03:52 AM
#3
Re: Pass ID of selected dropdownlist value to controller
Not sure if this example will be of use.
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
-
Sep 2nd, 2011, 03:55 AM
#4
Thread Starter
PowerPoster
Re: Pass ID of selected dropdownlist value to controller
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|