filmov
tv
Part 40- How to Send Multiple checkbox IDs to the controller using JQuery in Asp. Net MVC

Показать описание
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 :
Follow us on Twitter : @technotipsMVC, @aapkanigam
VISIT BLOG HERE :
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.
RECOMMENDATION:
1.Upload image to file server
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
Jquery image preview
return multiple model
login page bootstrap
create registration page
Partial view in mvc
how to create a - website
how to create bootstrap popup modal
asp. net mvc
model view controller
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 :
Follow us on Twitter : @technotipsMVC, @aapkanigam
VISIT BLOG HERE :
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.
RECOMMENDATION:
1.Upload image to file server
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
Jquery image preview
return multiple model
login page bootstrap
create registration page
Partial view in mvc
how to create a - website
how to create bootstrap popup modal
asp. net mvc
model view controller
Комментарии