My fault, I made customFn to be consistent with other javascript events like onclick where "this" refers to the input element the attribute is defined on (so indeed "this.value" should be the value from the asp textbox) and made the function to return true if valid or false if not. But for some reason I did the opposite for the personally defined validator collection and instead made "this" the input value (in javascript you can change what "this" refers to when calling a function) and made false the value to return if the value is valid. This has been tidied up and should now work with your sample code as it now stands:
↧