How to update records by Checkbox in ASP.NET
Posted on 2007-03-20
I use Repeater to display data on asp.net form. I added a checkbox field(not from the DB) in the repeater and a 'update' button outside of the repeater. Here is what I want, the user can click on the checkboxes next to each record, then click on 'update' button to run a update sql stmt for those check marked records.
the update sql stmt will always be the same like the following:
where ID= MyID
MyID is a field on the repeater which is the primary field(unique).
Thanks in advance.