Validation Event Order

Discussion in 'ASP .Net Web Controls' started by Benign Vanilla, Jun 16, 2004.

  1. I have several required fields validated using the out of the box valdiation
    controls. I also have a custom validator for a checkbox on my form. When the
    user clicks the Save button, the form is submitted and the required fields
    are validated. If any fail, my validation summary control kicks in. Once
    those are fixed, my save function is called, which in turn calls the
    function for the custom validator.

    The problem is that the custom validator does not run unless all other
    validations succeed. It seems the out of the box validators fire on the form
    submission before the click event. Is this true? Where could I put my custom
    call so that it is included in the validation list with the others and does
    not wait for the click event to fire?

    BV.
    Benign Vanilla, Jun 16, 2004
    #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. Prince

    Validation Order

    Prince, Jan 7, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    3,844
    Peter Blum
    Jan 9, 2004
  2. Bijoy Naick

    Execution order of Validation Controls

    Bijoy Naick, Jun 8, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    2,955
    Martin Marinov
    Jun 8, 2004
  3. Soren Kuula
    Replies:
    2
    Views:
    495
    Soren Kuula
    Feb 1, 2004
  4. cspoh
    Replies:
    0
    Views:
    244
    cspoh
    Jul 31, 2003
  5. Stephan Kämper
    Replies:
    2
    Views:
    232
    Stephan Kämper
    Jan 18, 2004
Loading...

Share This Page