473,513 Members | 3,621 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

validating groups of validators in 1.1

I noticed this nice new feature in 2.0:

a.. Validation Groups - Validation groups allow multiple forms on a page to
be separately validated.

Alas, I'm using 1.1 on a project at the moment and need to do exactly that.

Any best-method way to handle that with 1.1?

I have one ASP.net form on the page, but two seperate sets of fields I want
to validate depending on which button I click.

Is it just a matter of this?:

button click handler()
validator1.validate()
validator2.validate()
...
validator9.validate()

if validator1.isvalid AND validator2.isvalid AND... validator9.isvalid()
do your thing
end if
-Darrel
Apr 25 '06 #1
3 1201
As a followup, I tried just that (only validating the specific controls).

However, it still seems as if my reuired field validators are validating
even when I am not explicitely telling them to. Do those behave different
than the rest for some reason?

-Darrel
Apr 25 '06 #2
Darrel i don't think you can do what you want with ASP.NEt1.1
if i understand you i think your problem is that your validations are
clashing?
Try setting causesvalidation to false so they won't clash.
Patrick

"Darrel" <no*****@nospam.com> wrote in message
news:ec**************@TK2MSFTNGP03.phx.gbl...
As a followup, I tried just that (only validating the specific controls).

However, it still seems as if my reuired field validators are validating
even when I am not explicitely telling them to. Do those behave different
than the rest for some reason?

-Darrel

Apr 25 '06 #3
> Try setting causesvalidation to false so they won't clash.

aha! Excellent. Thanks!

-Darrel
Apr 25 '06 #4

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

Similar topics

0
1458
by: Ante Perkovic | last post by:
Hi, After long search of the internet, I couldn't find any solution on validating a datagrid. I have textboxes and validators (required field) in <editItemTemplate> and labels in <ItemTemplate>. My validators can't find textboxes! Why? Please help!
1
1499
by: Paul | last post by:
Hi, I'm developing a search facility for my web app. In order for the search criteria to be valid the user must (a) enter some text in a text box and check and least one checkbox (of which there are two) and/or (b) select at least one item from a multiple select list box. I've written the javascript to do the client side validation which...
7
1589
by: ani | last post by:
I have two submit buttons in my form which need to validate two different controls on the page . How do I validate portions of the asp.net page. The two submit buttons should validate their respective controls. If anyone has got any articles or sample pages, please forward.. Thanks..
3
1411
by: Darrel | last post by:
(whew...I'm full of questions tonight!) I have two textBoxes that I need to validate. One's a phone number and one's an email address. I need to only validate one of them, though. (ie, only email or only phone are required). How can I do this? I've set up a custom control the checks both of these fields and if they're both blank, it...
4
3116
by: DotNetTechi | last post by:
hi all, i am using tabstrip with multipage control in asp.net.i have put some textboxes on the first tab.my requirement is that i whenever user make somechanges in any of textbox and moves to next tab without saving this data i want to display a alert message and stop user from moving to another tab. For this i have written a javascript...
4
1183
by: Joe Abou Jaoude | last post by:
hi I m facing the following problem often : In a web page the user can click on 2 buttons "button1" and "button2". If the user clicked on button1 then I have to validate part of the form (some controls musn't be validated), and if the user clicked on button2 then I have to validate the other part of the form. Usually I would do this by using...
4
2691
by: ibiza | last post by:
Hi all, I have a small question concerning asp.net 2.0 validation groups. I have this (simplified) situation : Name Value _____ _____ |_____| |_____| _____ _____ |_____| |_____|
8
2098
by: ShaneFowlkes | last post by:
For some reason, my validator controls stopped working when a form posts. They seems to work on fields that lose focus but if I submit a form with all empty fields, not of the required validators catch it and this results in runtime errors with my code. It's real standard stuff using .NET 2 (VB). I've stopped and restarted IIS several...
76
3014
by: Michael Stemper | last post by:
The W3C Validator is a great help, as far as it goes. However, I'm looking for something stricter. My coding style does not allow for implicit termination of an element; my intention and desire is to explicitly terminate every element. Just last night, it took me two hours to track down some funny behavior. It turned out to be caused by...
0
7177
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...
1
7123
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...
0
7542
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5701
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
4756
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...
0
3248
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3237
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1611
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
0
470
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...

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.