Validators

Discussion in 'ASP .Net Web Controls' started by Chuck Douglas, Mar 22, 2010.

  1. I am using a CompareValidator to make sure the content in a textbox control
    is an integer. I am also using a RangeValidator to make sure the number is
    between a certain range.

    When the user types an alphanumeric string (i.e. "A67"), both validators
    fire. I understand why the CompareValidator fires. Why does the
    RangeValidator fire?

    In this case, I do not want to see both errors. Is there anyway to have the
    second through n validators not get evaluated, if the first validator failed?
    Are there other options I should be considering?

    Thanks
    Chuck
    Chuck Douglas, Mar 22, 2010
    #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. William F. Robertson, Jr.

    Re: Validators

    William F. Robertson, Jr., Jun 25, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    855
    William F. Robertson, Jr.
    Jun 25, 2003
  2. Marina

    All validators stopped working

    Marina, Jun 27, 2003, in forum: ASP .Net
    Replies:
    4
    Views:
    432
    Rajesh Tiwari
    Jun 27, 2003
  3. dmedina

    Validators and javascript

    dmedina, Jun 30, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    383
    William F. Robertson, Jr.
    Jun 30, 2003
  4. William F. Robertson, Jr.

    Validators

    William F. Robertson, Jr., Jul 10, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    460
    William F. Robertson, Jr.
    Jul 10, 2003
  5. Ratman
    Replies:
    0
    Views:
    653
    Ratman
    Sep 14, 2004
Loading...

Share This Page