Actually you have to develop the form that contain the checkbox dynamically from your ASP script like the following
Code:
response.write "<form method='get' action=''>"
if(rs("chk") = 1) Then
response.write "<input type='checkbox' name='check' value=" &<%rs("chk") &" checked> Some Label"
else
response.write "<input type='checkbox' name='check' value=" &<%rs("chk") &"> Some Label"
The above one is just an example
If you look at the value part the assumption is you've retrieved the records into a recordset object rs and accessing the field CHK which contains the value from the BIT field
rs("chk") = 1 represent that the checkbox was checked.
rs("chk") = 0 represent that the checkbox was not checked
You need to place this kind of code inside a loop as it needs to work on multiple records.
Bookmarks