CustomValidator firing twice and not displaying error message

Discussion in 'ASP .Net Web Controls' started by Talisker, Jun 9, 2006.

  1. Talisker

    Talisker Guest

    I have a custom validator that checks to see if a checkbox is checked,
    if it is then another field is required, so if it's blank then I want
    to display an error. When I submit the form, for some reason it is
    running the validator (server side) twice. It properly changes the
    IsValid to False so the form doesn't get submitted, but the error
    message doesn't display on the page.

    Any idea why it would run twice (with nothing else running in between)
    or not display the error?

    Another thing to note, this is within the Edit template of a FormView
    control in .net 2.0.

    Any pointers would be welcome.
     
    Talisker, Jun 9, 2006
    #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. alien2_51
    Replies:
    2
    Views:
    3,906
  2. COHENMARVIN

    CustomValidator doesn't give error message

    COHENMARVIN, Aug 5, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    2,459
    Peter Blum
    Aug 5, 2005
  3. Damon
    Replies:
    2
    Views:
    8,847
    blue875
    Jun 23, 2009
  4. ashutosh
    Replies:
    1
    Views:
    3,347
    kaeli
    May 27, 2005
  5. Kiuhnm

    twice(twice(x))

    Kiuhnm, Apr 1, 2006, in forum: C++
    Replies:
    2
    Views:
    396
    Kiuhnm
    Apr 1, 2006
Loading...

Share This Page