I have a form with preselected items in a checkboxlist control. What i'd like to do is either add a record if a checkbox was checked. Delete a record if the checkbox was unchecked.
A user checked the following items and recorded them to a DB.
Checkboxlist Items:
car
truck (checked)
boat
motorcycle (checked)
bike (checked)
now if the use checked "boat" i want add it to the DB and if they unchecked "bike" i want to delete it. Should i turn on autopostback and try to get the value of the checked item and make a call to the DB or is this just the wrong appoach.
TIA
A user checked the following items and recorded them to a DB.
Checkboxlist Items:
car
truck (checked)
boat
motorcycle (checked)
bike (checked)
now if the use checked "boat" i want add it to the DB and if they unchecked "bike" i want to delete it. Should i turn on autopostback and try to get the value of the checked item and make a call to the DB or is this just the wrong appoach.
TIA