Stop execution of compare validator

Discussion in 'ASP .Net Web Controls' started by sushant13@gmail.com, Oct 24, 2005.

  1. Guest

    Hi,
    I have two text boxes. Both are accepting date value. I have 2
    compare validators associated with first textbox. The first compare
    validator checks input value is of type Date or not. The second one
    compares first textbox's value with second textbox.

    Problem is when I am entring say value 'abc' in first text box and
    submit the page it displays two messages.

    1. Input must be in correct format -- first compare validator
    2. Date From must be less than Date To - second compare validator

    I want to stop execution of validation if one validator fails. Or is
    there any other way to display only one message instead of two.

    Please guide me.

    Thanks in advance.
    Sushant
     
    , Oct 24, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Robbo
    Replies:
    0
    Views:
    325
    Robbo
    Oct 30, 2003
  2. dotnet beginner

    Compare Validator

    dotnet beginner, Nov 12, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    457
    Mike Moore [MSFT]
    Nov 13, 2003
  3. A.M

    Compare Validator

    A.M, Jun 23, 2004, in forum: ASP .Net
    Replies:
    4
    Views:
    3,114
    scoutdickens
    Aug 23, 2007
  4. TN Bella
    Replies:
    0
    Views:
    479
    TN Bella
    Jul 2, 2004
  5. Kaja
    Replies:
    0
    Views:
    607
Loading...

Share This Page