validation problem

Last post 11-02-2009 10:18 AM by TarekHalaseh. 2 replies.

Sort Posts:

  • validation problem

    11-02-2009, 7:11 AM
    • Member
      12 point Member
    • Mr Yas
    • Member since 06-24-2009, 12:45 PM
    • Posts 26

    Hai All

     

     I have two textbox like textbox1 and textbox2 and a save button ,I put two validators in

    two  textboxs if i press save button with empty textbox it shows validation

    But i want to show the validator when am entering text in Textbox2 with out entering textbox1 

  • Re: validation problem

    11-02-2009, 7:50 AM
    • Contributor
      2,148 point Contributor
    • vipuldonga
    • Member since 02-10-2009, 6:18 AM
    • Ahmedabad
    • Posts 382

    hi,

    for that you have to used custome validator in that you create you your own methond and then check it that first textbox is empty if second textbox is not empty if it is then give alert message.


    Thanks & Regards
    Vipul Donga

    Mark it as an answer, if it helped

    if (MyAnswer)
    MarkAsAnswer();
  • Re: validation problem

    11-02-2009, 10:18 AM
    Answer
    • Member
      357 point Member
    • TarekHalaseh
    • Member since 11-02-2009, 1:53 AM
    • Amman, Jordan
    • Posts 79

    for that use a javascript to validate your 2 text boxes. you can use the event "onChange" for textbox2 to validate textbox1 

    Please if this answer help you remember to click "Mark as Answer".
Page 1 of 1 (3 items)