ASP.NET Custom Validator Client side & Server Side validation not firing
This has not happened to me before, but for some reason both the client and server side validation events are not being triggered:
This has not happened to me before, but for some reason both the client and server side validation events are not being triggered:
Lets say I have this code.
I’m trying to implement a .NET Custom Validator that uses $.ajax to query a WebMethod on the same page and return a boolean value to indicate whether the result is true or false.
I have run into this problem before but never quite solved it. I have a form with several validators and also a CustomValidator.
I use ASP.NET and have a Button and a CustomValidator, which has to validate
the button.
I’ve put a CustomValidator on my form. I have not set its ControlToValidate property. In its ServerValidate event I’ve written the following:
I have an ASP .NET page with ASP validators (Required Field, Regular Expression,…) plus java script functions for additional validation (for example, to check if second date bigger than first date, among others).