I have a custom validator on my aspx page that will just not work. Below is the code in the code behind that should be called when I press the Save button, but it never is. If I run in debug, this block of code is never even reached. I have "Page.IsValid" being called in the Save code. I also have a RequiredValidator on this same page that works fine so the problem is something with this validator.
For the record I have "EnableClientScript" set to false. However, I even tried setting it to true and that did not work either.
I am missing something small?
Sub valSchedule_ServerValidate(ByVal source As System.Object, ByVal args As System.Web.UI.WebControls.ServerValidateEventArgs) Handles valSchedule.ServerValidate
If Request.QueryString("Edit") <> "yes" Then
If cboSchedule.SelectedItem.Value = "" Then
args.IsValid() = False