Click here to Skip to main content
15,894,343 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am creating mvc project, In index.cshtml page I have one button (say Show) on this button click I am opening a popup, In that popup I have 5 checkboxes and one button (Get Selected box) so, How to get list of selected check boxes on button click in controller.
this is my first project in mvc, please help me,
thanks in advance.

What I have tried:

I spent couple of day on google but not getting any solution,
Posted
Updated 21-May-17 19:01pm
v2
Comments
F-ES Sitecore 22-May-17 7:01am    
Use a form where the check boxes are in the form and the button is a submit button and the action of the form is an action on your controller. This is fairly straightforward MVC stuff so any tutorial or book on MVC will show you how to handle forms. If there is something about the way you are handling the pop-up that makes this impossible to do then you'll have to post the code you have so far.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900