473,799 Members | 3,137 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Hi. I have an aspx page containing 2 AJAX UpdatePanels. Both panels contain
requiredfieldva lidators & each have a validationsumma ry 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
requiredfieldva lidators in UpdatePanel1, UpdatePanel2 requiredfieldva lidators
also validate. This will also cause the errormessages from validators in
UpdatePanel2 to display in UpatePanel1's validationsumma ry 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 1903
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
requiredfieldva lidators & each have a validationsumma ry 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
requiredfieldva lidators in UpdatePanel1, UpdatePanel2 requiredfieldva lidators
also validate. This will also cause the errormessages from validators in
UpdatePanel2 to display in UpatePanel1's validationsumma ry 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
requiredfieldva lidators & each have a validationsumma ry 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
requiredfieldva lidators in UpdatePanel1, UpdatePanel2 requiredfieldva lidators
also validate. This will also cause the errormessages from validators in
UpdatePanel2 to display in UpatePanel1's validationsumma ry 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
1381
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 fine for every namespace except of the default namespace. In the default namespace there is no Event when the XML file is wrong. Could anybody tell me what there is wrong with my code (as seen below)? I have tried several things, but I could...
0
1704
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 error cause whenever a user makes a mistake. I don't know why my Validation Summary Message Box doesnt show up in IE. I´ve already set EnableClientScript and ShowMessageBox to true. Any ideas? -- Jorge Luzarraga C
2
2435
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 so I have 3 required field validation and regular expression validation controls. I set the display property to none and have a validation summary control in my hosting page. I have a method in the user control that then assigns the error message...
4
6883
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, that is, the ErrorMessage text is displayed by the Validation summary control. If I leave the CV Text field blank then the errormmessage does display on the CV itself.
1
1893
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 contains a radio control which the user must answer to finish the page entry. If user hits submit button without selecting item from control, summary validation error displays. In this case one click is sufficient. Once the user selects choice on...
0
2140
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 contains a radio control which the user must answer to finish the page entry. If user hits submit button without selecting item from control, summary validation error displays. In this case one click is sufficient. Once the user selects choice on...
2
2083
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 control that causes an error. I am using asp.net and javascripts.So I am trying to solve the problem with a javascript. Help! Thanks
2
3384
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 control that causes an error. I am using asp.net and javascripts.So I am trying to solve the problem with a javascript. Help! Thanks
2
1437
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 them in the Updating event and then enable them again in the Updated event. I was surprised to see that all the animations occur when any AJAX postback occurs. All the UpdatePanelAnimationExtenders have their UpdatePanel ID as their...
0
9546
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10490
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10260
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10243
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7570
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6809
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4146
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2941
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.