problem with validationsummary and custom controls

Discussion in 'ASP .Net Web Controls' started by Phl, Nov 29, 2004.

  1. Phl

    Phl Guest

    Hello, can some one help me with this problem?

    I have a mainpage with validationsummary control. usercontrols are
    loaded dynamically. I do validation in these usercontrols. Some of
    them I use requiredvalidation others I use customvalidation.

    Here is the problem. The error messages from my requiredvalidation
    controls are loaded(or redisplayed from postback) properly. While the
    customvalidation error messages are only shown in the
    validationsummary control in the first time, but after the next
    postback they no longer gets displayed. So I guess I need to run my
    customvalidaiton everytime?

    I really don't understand why they aren't persisted in the viewstate.
    Does anyone know what the bestway for me to integrate the
    customvalidation with the validationsummary?
     
    Phl, Nov 29, 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. Ken Varn

    Multiple ValidationSummary controls.

    Ken Varn, Mar 29, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    5,554
    Peter Blum
    Mar 30, 2005
  2. NuB

    validationSummary controls

    NuB, Dec 20, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    671
  3. MattB
    Replies:
    0
    Views:
    518
    MattB
    Feb 3, 2006
  4. Code Rodent
    Replies:
    1
    Views:
    8,785
    SpinMap
    Aug 4, 2006
  5. rodchar
    Replies:
    0
    Views:
    402
    rodchar
    Nov 26, 2007
Loading...

Share This Page