I need help with the following:
I'm using a detailsview to edit data; one of the data-controls is a checkbox.
On submitting I want to make sure that the checkbox is checked. requierd field validator doesn't work and also a custom validator doesn't work:
Protected Sub CustomValidator1_ServerValidate(ByVal source As Object, ByVal args As System.Web.UI.WebControls.ServerValidateEventArgs)
Dim bool As CheckBox = DetailsView1.FindControl("BeterGemeld")
If bool.Checked = True Then
args.IsValid = True
args.IsValid = False