hi..


I have a text box with a custom validator, compare field validator. I have a problem with the error message display.

my compare field validator works normally....ie; when I enter a wrong value it gives me the error message and when I correct it the error message disappears.but this does not happen with my custom validator......I do not undersatnd the reason..I tried to run an example downloaded from some site and that example works as required..I tried to implement a similar logic but still the error message does not disappear.......I am struggling to find the reason for this behaviour...can somebody please guide me...thank you

JavaScript method for Custom validation must be,

function TestExample(sender,args) {
       if(args.Value!="A") {
            //Invalid
            args.IsValid=false;
       }
  }
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.