I was wondering if anyone has any clean (i'd even take not so clean) method of updating a database when a checkboxlist has NO items selected. The page used to insert the data (using a sql insert into...) works just fine, however, when i try to update the database from an edit page (using a sql update...) i get an error that basically said i need to choose at least ONE of the checkbox's.
I pasted the code that takes the items selected in the checkboxlist, puts them into a string, and updates the database.
For each itmCADStatus in cblCADStatus.Items
If itmCADStatus.Selected Then
strCADStatus &=", " & itmCADStatus.Text
End If
Next
Thanks in advance.
dc.
I pasted the code that takes the items selected in the checkboxlist, puts them into a string, and updates the database.
For each itmCADStatus in cblCADStatus.Items
If itmCADStatus.Selected Then
strCADStatus &=", " & itmCADStatus.Text
End If
Next
Thanks in advance.
dc.