ASP.Net - Checkbox

Checkbox controls

To set a checkbox, you can you code similar to the following.

1

If you are driving a bit field

1
chkActive.Checked = IIf(.Item("Active") = 1, 1, 0)

If you are driving a varchar field

1
2
3
If .Item("Interest_In_Mentoring").ToString = "Y" Then
chkMentor.Checked = True
End If

Events

The OnCheckChanged property is executed server side when the checkbox is changed.