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

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

  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. 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. Replies:
    1
    Views:
    579
  2. =?Utf-8?B?QWxleA==?=

    Hiding UpdatePanels / AJAX

    =?Utf-8?B?QWxleA==?=, May 4, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    335
    =?Utf-8?B?QWxleA==?=
    May 4, 2007
  3. =?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:
    415
    Masudur
    Jul 28, 2007
  4. Mike Gleason jr Couturier

    Delegates and UpdatePanels

    Mike Gleason jr Couturier, Aug 7, 2008, in forum: ASP .Net
    Replies:
    0
    Views:
    327
    Mike Gleason jr Couturier
    Aug 7, 2008
  5. Marc
    Replies:
    5
    Views:
    347
    Steven Cheng [MSFT]
    Aug 27, 2008
Loading...

Share This Page