PC Review


Reply
Thread Tools Rate Thread

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

 
 
=?Utf-8?B?TWlrZQ==?=
Guest
Posts: n/a
 
      14th Oct 2007
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
 
Reply With Quote
 
 
 
 
=?Utf-8?B?TWlsb3N6IFNrYWxlY2tpIFtNQ0FEXQ==?=
Guest
Posts: n/a
 
      14th Oct 2007
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

 
Reply With Quote
 
=?Utf-8?B?TWlrZQ==?=
Guest
Posts: n/a
 
      15th Oct 2007
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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Validation Summary not showing for client side validation cwhankey@gmail.com Microsoft ASP .NET 1 12th Dec 2008 02:32 AM
UpdatePanels refresh other UpdatePanels when UpdateMode is 'Condit =?Utf-8?B?cml2YWxAbmV3c2dyb3Vwcy5ub3NwYW0=?= Microsoft ASP .NET 1 28th Jul 2007 12:38 PM
Dynamically adding validation controls to a validation summary =?Utf-8?B?V2VzdGljbGU=?= Microsoft Dot NET Framework 1 18th Mar 2007 11:31 AM
Using Summary Validation control with server Custom validation =?Utf-8?B?QmFyYmFyYSBBbGRlcnRvbg==?= Microsoft ASP .NET 2 15th Oct 2004 07:15 PM
validation summary doesnt display when there's client-side validation Libs Microsoft ASP .NET 0 25th Jun 2003 04:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:14 PM.