473,394 Members | 1,841 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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

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
Oct 14 '07 #1
2 1882
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
Oct 14 '07 #2
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
Oct 15 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Daniel Haag | last post by:
I have got an XML file, that aderes to a XDR-Schema which references elements and attributes in two other XDR-Schemas. I want to validate this XML file before I create a DOM tree in C#. This works...
0
by: Jorge Luzarraga Castro | last post by:
Hi, I have a WebUserControl which contains several required field and compare validators. I´ve also add a validation summary control because I´m pretending to get a message box explaining the...
2
by: ticars | last post by:
I have a telephone number user control in which I need to validate the data entered (Required field validation and regular expression validation). The phone number is represented as 3 text boxes...
4
by: kpg | last post by:
I can't get the CustomValidator (CV) ErrorMessage to display in the ValidationSummary. On the same page I have several RequiredField Validators and a Range Validator, that all work just fine,...
1
by: =?Utf-8?B?QmFyYmFyYSBBbGRlcnRvbg==?= | last post by:
I'm having trouble working with a Summary Validation control. I need to click my submit button twice for the Summary to display when validation errors occur on the page. Background: My page...
0
by: =?Utf-8?B?QmFyYmFyYSBBbGRlcnRvbg==?= | last post by:
I'm having trouble working with a Summary Validation control. I need to click my submit button twice for the Summary to display when validation errors occur on the page. Background: My page...
2
by: Luke Sayaw | last post by:
Hi, Does anyone have an idea of how to set focus to the first control after summary validation occurs. After clicking on the summary validation message box, the focus should be set to the first...
2
by: Luke Sayaw | last post by:
Hi, Does anyone have an idea of how to set focus to the first control after summary validation occurs. After clicking on the summary validation message box, the focus should be set to the first...
2
by: JC | last post by:
I have a form with a few UpdatePanels and each has an associated UpdatePanelAnimationExtender which causes fade-in and fade-out. In addition 2 of the animations disable the 2 buttons which trigger...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.