Meredith,
I usually simply delete all previous items in the db related to the
checkboxes, then reload the complete list onSubmit.
That way i don't need to keep track of what is in the db.
To get the items from the checklist:
Private Sub btnSubmit_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles btnSubmit.Click
Dim iCount As Integer
For iCount = 0 To chkEvents.Items.Count - 1
If chkEvents.Items(iCount).Selected = True Then
'do something meaningful here (ie: add to a
list, or insert into db)
End If
Next
End Sub
>>> [EMAIL PROTECTED] 07/09/2004 9:54:10 AM >>>
Hi all,
I will be databinding a checkboxlist and checking items that users
previously selected. What I need to do is keep track of what new
has occurred - users checking/unchecking boxes so that I can
enter/delete data into/from the database. Any suggestions on the
best way to do this?
TIA,
Meredith
Yahoo! Groups SponsorADVERTISEMENT
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/