1
Answer

how to get all listbox value and id from listbox in mvc.

prabhu p

prabhu p

7y
250
1
I have one textbox for userid and  2 to listbox 
 
step 1:first filling textbox with userid
 
step 2:  Moving left list box value to right listbox and then submit
 
when sumbit i want to get  all right listbox and textbox userid value in user id
 
I have completed till populating values in both listbox
 
Question is how to get that to controller in mvc.
 
Please help on this
Answers (1)
0
Rupesh Kahane

Rupesh Kahane

NA 10.6k 866.5k 7y
Refer below article
1) https://www.aspsnippets.com/Articles/ASPNet-MVC-Get-ListBox-Selected-Text-and-Selected-Value-in-Controller.aspx

On submit button you can call ajax function and send data to action method in controller & do changes according to your requirements.