Click here to Skip to main content
15,886,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
How do you update checkbox while clicking on a button and then refresh the datalist.. here Im using a column as Isfavourite with datatype as int and with values as 0 and 1. so certain items will have values 0 and others will have 1.. now initially when I display the datatlist in the webpage it will have all items which has the value 1. now when i click on the checkbox the clicked checkbox will be updated with the value of 0 and that particular row should disappear from the list on a button click .. can anyone help me with the code or any link..
eg:items,price and is favourite are my 3 columns
Items  Price  Isfavourite
  a      1        1 
  b      4        1
  c      5        0
  d      6        1

Now I will select all rows where IsFavourite is 1
Items  Price  Isfavourite
  a      1        1 
  b      4        1
  d      6        1

now when I click on a check box say adjacent to a and then click on the submit button the new datalist to be displayed should be like this
Items  Price  Isfavourite
   b      4        1
  d      6        1

Hope you have understood my point
Posted
Updated 6-Jan-12 19:42pm
v4

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