I have retrieved checkbox checked values & put in textbox as 1,2,3,4,5...so on ...and inserted into database ... using vb.net
Have a look at my database
Dim checked = From chosen in db.Table Where chosen.date = "11/10/2010" Select chosen.checked
Dim boxes as new List (of string)
For each item in checked
boxes.addrange(item.split(","c))
Next
Dim BoxNums = From boxnum in boxes Distinct Select "checkbox" + Cstr(boxnum)
For Each but As CheckBox In YourForm.Controls
For Each boxname As String In boxnums
If but.Name = boxname Then
but.Checked = False
but.Enabled = False
End If
Next
Next