Validation In Seperate Controls conflicting

Discussion in 'ASP .Net' started by RSH, Aug 2, 2006.

  1. RSH

    RSH Guest

    Hi,

    I have a page that uses two seperate user controls (ascx files). Both
    controls have textbox controls on them along with seperate submit buttons.
    Control #2 has required validators. The problem is that I need the
    validator controls to be disabled if the user submits control #1. Right now
    Control #1 wont submit because the validators in control #2 are tripped when
    the submit button on Control #1 is clicked on. I know how to disable the
    validators in a single control based on conditionals, but since the
    validators are in a seperate control i don't know how to disable them.

    Please help.

    Thanks,
    Ron
     
    RSH, Aug 2, 2006
    #1
    1. Advertising

  2. RSH

    RSH Guest

    Nevermind...I used the CausesValidation property on the button and set it to
    false.

    Thank God for Google!


    "RSH" <> wrote in message
    news:%...
    >
    > Hi,
    >
    > I have a page that uses two seperate user controls (ascx files). Both
    > controls have textbox controls on them along with seperate submit buttons.
    > Control #2 has required validators. The problem is that I need the
    > validator controls to be disabled if the user submits control #1. Right
    > now Control #1 wont submit because the validators in control #2 are
    > tripped when the submit button on Control #1 is clicked on. I know how to
    > disable the validators in a single control based on conditionals, but
    > since the validators are in a seperate control i don't know how to disable
    > them.
    >
    > Please help.
    >
    > Thanks,
    > Ron
    >
     
    RSH, Aug 2, 2006
    #2
    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. Will

    Conflicting namespaces??

    Will, Aug 13, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    1,701
    Chris R. Timmons
    Aug 13, 2003
  2. =?Utf-8?B?UGF1bA==?=

    2 seperate validation groups on 1 page?

    =?Utf-8?B?UGF1bA==?=, Aug 4, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    400
    Peter Blum
    Aug 4, 2004
  3. Guadala Harry

    Conflicting Controls (who dunit?)

    Guadala Harry, Sep 25, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    390
    Ken Dopierala Jr.
    Sep 26, 2004
  4. moondaddy
    Replies:
    2
    Views:
    590
    Steven Cheng[MSFT]
    Oct 16, 2006
  5. Andrew Connell
    Replies:
    0
    Views:
    112
    Andrew Connell
    Nov 19, 2003
Loading...

Share This Page