2 UpdatePanels - Each w/it's own Validation Summary

Discussion in 'ASP .Net' started by =?Utf-8?B?TWlrZQ==?=, Oct 14, 2007.

  1. Hi. I have an aspx page containing 2 AJAX UpdatePanels. Both panels contain
    requiredfieldvalidators & each have a validationsummary control. Both panels
    contain a button control that when clicked cause the validation to occur.

    Currently if I'm clicking the button in UpdatePanel1 to validate the
    requiredfieldvalidators in UpdatePanel1, UpdatePanel2 requiredfieldvalidators
    also validate. This will also cause the errormessages from validators in
    UpdatePanel2 to display in UpatePanel1's validationsummary control.

    How can I run validation for only one specific UpdatePanel on a page, when
    more than one UpdatePanels exist on that page?

    Thanks
     
    =?Utf-8?B?TWlrZQ==?=, Oct 14, 2007
    #1
    1. Advertisements

  2. Mike,

    Have a closer look at the ValidationGroup property.

    Regards
    --
    Milosz


    "Mike" wrote:

    > Hi. I have an aspx page containing 2 AJAX UpdatePanels. Both panels contain
    > requiredfieldvalidators & each have a validationsummary control. Both panels
    > contain a button control that when clicked cause the validation to occur.
    >
    > Currently if I'm clicking the button in UpdatePanel1 to validate the
    > requiredfieldvalidators in UpdatePanel1, UpdatePanel2 requiredfieldvalidators
    > also validate. This will also cause the errormessages from validators in
    > UpdatePanel2 to display in UpatePanel1's validationsummary control.
    >
    > How can I run validation for only one specific UpdatePanel on a page, when
    > more than one UpdatePanels exist on that page?
    >
    > Thanks
     
    =?Utf-8?B?TWlsb3N6IFNrYWxlY2tpIFtNQ0FEXQ==?=, Oct 14, 2007
    #2
    1. Advertisements

  3. Miosz - Thank you!

    "Milosz Skalecki [MCAD]" wrote:

    > Mike,
    >
    > Have a closer look at the ValidationGroup property.
    >
    > Regards
    > --
    > Milosz
    >
    >
    > "Mike" wrote:
    >
    > > Hi. I have an aspx page containing 2 AJAX UpdatePanels. Both panels contain
    > > requiredfieldvalidators & each have a validationsummary control. Both panels
    > > contain a button control that when clicked cause the validation to occur.
    > >
    > > Currently if I'm clicking the button in UpdatePanel1 to validate the
    > > requiredfieldvalidators in UpdatePanel1, UpdatePanel2 requiredfieldvalidators
    > > also validate. This will also cause the errormessages from validators in
    > > UpdatePanel2 to display in UpatePanel1's validationsummary control.
    > >
    > > How can I run validation for only one specific UpdatePanel on a page, when
    > > more than one UpdatePanels exist on that page?
    > >
    > > Thanks
     
    =?Utf-8?B?TWlrZQ==?=, Oct 15, 2007
    #3
    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. Libs
    Replies:
    0
    Views:
    1,743
  2. Lucas Tam
    Replies:
    2
    Views:
    1,316
    Lucas Tam
    Feb 26, 2004
  3. =?Utf-8?B?QmFyYmFyYSBBbGRlcnRvbg==?=

    Using Summary Validation control with server Custom validation

    =?Utf-8?B?QmFyYmFyYSBBbGRlcnRvbg==?=, Oct 15, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    1,074
    =?Utf-8?B?QmFyYmFyYSBBbGRlcnRvbg==?=
    Oct 15, 2004
  4. Replies:
    1
    Views:
    671
  5. =?Utf-8?B?QWxleA==?=

    Hiding UpdatePanels / AJAX

    =?Utf-8?B?QWxleA==?=, May 4, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    446
    =?Utf-8?B?QWxleA==?=
    May 4, 2007
  6. =?Utf-8?B?cml2YWxAbmV3c2dyb3Vwcy5ub3NwYW0=?=

    UpdatePanels refresh other UpdatePanels when UpdateMode is 'Condit

    =?Utf-8?B?cml2YWxAbmV3c2dyb3Vwcy5ub3NwYW0=?=, Jul 28, 2007, in forum: ASP .Net
    Replies:
    1
    Views:
    507
    Masudur
    Jul 28, 2007
  7. Mike Gleason jr Couturier

    Delegates and UpdatePanels

    Mike Gleason jr Couturier, Aug 7, 2008, in forum: ASP .Net
    Replies:
    0
    Views:
    435
    Mike Gleason jr Couturier
    Aug 7, 2008
  8. Replies:
    1
    Views:
    5,215
    bruce barker
    Dec 12, 2008
Loading...