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. Advertisements

  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. Advertisements

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. Matt
    Replies:
    14
    Views:
    4,524
    Chad Z. Hower aka Kudzu
    Jan 30, 2004
  2. =?Utf-8?B?ZGh1cndpdHo=?=
    Replies:
    1
    Views:
    626
    Teemu Keiski
    Apr 10, 2004
  3. =?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:
    500
    Peter Blum
    Aug 4, 2004
  4. Guadala Harry

    Conflicting Controls (who dunit?)

    Guadala Harry, Sep 25, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    541
    Ken Dopierala Jr.
    Sep 26, 2004
  5. baroque Chou
    Replies:
    4
    Views:
    553
    Peter Blum
    Jan 24, 2006
  6. moondaddy
    Replies:
    2
    Views:
    722
    Steven Cheng[MSFT]
    Oct 16, 2006
  7. Nathan Sokalski
    Replies:
    4
    Views:
    1,377
    Muhammad Naveed Yaseen
    Sep 5, 2007
  8. Andrew Connell
    Replies:
    0
    Views:
    194
    Andrew Connell
    Nov 19, 2003
Loading...