Top Categories
Part 40 - How to Send Multiple checkbox IDs to the controller using JQuery in Asp. Net MVC
- Category: Information Technology
- Sub Category: ASP.NET
OVERVIEW:
In this video I have explained,How to send checkbox IDs to controller or server. In previous video I discussed about how to display multiple checkbox with checked and unchecked value. This part is the continuation of previous one.
SOCIAL :
Like TechnoTips official Page : http://facebook
OVERVIEW:
In this video I have explained,How to send checkbox IDs to controller or server. In previous video I discussed about how to display multiple checkbox with checked and unchecked value. This part is the continuation of previous one.
SOCIAL :
Like TechnoTips official Page : http://facebook.com/technotipstutorial
Subscribe : http://youtube.com/aapkanigam
Follow us on Twitter : @technotipsMVC, @aapkanigam
VISIT BLOG HERE :
http://technotipstutorial.blogspot.com
INTRODUCTION :
Please follow below step.
1. Give an unique ID to each checkbox which should contain the ID from coming from server. ex- Check_1 (here check is the extra text and 1 is the actual ID of checkbox coming from server.
2. On update button click call the jquery function then, i.e. iterate through each list item and get the each checkbox ID present in the list.
3. Split checkbox Id by underscore "_" . you will get actual Id at array[1] index.
4. Now you have all information related to checkbox . As you can traverse through each checkbox , you can check if it is checked or not.
5. Check if checkbox is checked then, push its ID to an array .
6. Finally using ajax call you can send this array containing IDs to controller by converting it into comma separated string.
7. YourArray.toString() is the method to convert your array into comma separated string.
RECOMMENDATION:
1.Upload image to file server
https://www.youtube.com/watch?v=btmJrgRldtk
TAGS :
Cascading dropdown list using jquery and partial view
download image from url and save to SQL
upload image to sql sever database
upload image to file server
upload and show image in asp.net mvc
preview image before upload in asp.net mvc
Jquery image preview
create dynamic menu in asp.net mvc
return multiple model
create login page in asp.net
login page bootstrap
create registration form in asp.net mvc
create registration page
Partial view in mvc
html.partial
how to create a - website
how to create bootstrap popup modal
asp. net mvc
asp.net mvc interview questions
asp.net mvc 5 tutorial
model view controller