Validation Message display/non-display

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • user1980
    New Member
    • Dec 2009
    • 112

    #1

    Validation Message display/non-display

    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
  • user1980
    New Member
    • Dec 2009
    • 112

    #2
    i figured the reason why my validator was behaving that way..

    my validator was validating one text box..ie; controltovalida te is textbox1 and when I enter text in textbox2, the error message still appears because it is not the controltovalida te and it is not validating the text in textbox2 but at the end..my serverside validation checks for the condtion and the args.Isvalid becomes true and thus the page becomes valid...

    now I have to come up with a logic where the controltovalida te still remains textbox1 but the textbox 2 is also validated on clientside....


    can someone tell me how to call one clientside function fron another client side function..is it possible??

    Comment

    • Frinavale
      Recognized Expert Expert
      • Oct 2006
      • 9749

      #3
      Calling a JavaScript function from within another JavaScript function is pretty easy....it's done the same way as you would do it in C#

      You just call the method :)

      -Frinny

      Comment

      • user1980
        New Member
        • Dec 2009
        • 112

        #4
        yeah.. but did not know how to call the javascript with source and arguments...
        but anyways I found another logic which is working for me..
        I am trying to call a required field valdiator from my custom validator clientside validation function. I am still testing it..once I get the required results I will post the code..thank you

        Comment

        Working...