well offcourse u can, btnx for control1 btny for all controls add to each button "onClick=processX" / "processY" then, in each method u validate whatever controls u want.
I'm not even sure I understood that answer. Sorry haidar... If you want to do this on the client-side, there is no built in capability. The concept of "validation groups" applies to this and is coming in ASP.NET 2.0. I'm not even sure it handles having a common
validator control that is in two separate groups... My product,
Professional Validation And More, provides validation groups (including the ability to let two submit buttons run a common validator) and has many other useful tools that Microsoft's Validators lack. If you simply want to use the server side validation,
you can write some code to do this. 1. Make each submit button have CausesValidation=false 2. Setup the button's Click event handler. Within that event handler, call the Validate() method on each validator that applies. Test Validator.IsValid to determine
if validation passed or not.
--- Peter Blum
Creator of Peter's Data Entry Suite (formerly Professional Validation And More and Peter's Date Package) and Peter's Polling Package
www.PeterBlum.com
hello, what i meant is the following: each button should have a server method to be exexuted when that button is clicked, so what i said was the following: btn1 should have (onclick="processX") then when this button if clicked, method called processX will be
fired, and that method will be able to control 1 control in the page. btn2 should have (onClick="processY") which in turn, when btn2 is clicked, the method is fired, and it will be able to control other controls on the page, now its the developer turn to know
which controls are being controled in the specified method !!! hope its clear, and don't worry plblum....
plblum... good stuff. i wish i could afford to buy it to help u out...and to help myself out. but right now...im young unemployed and broke.. ill have to pass on that one. i would just use manual validation to save a few bucks right now.
"Only when we are no longer afraid do we begin to live" -D. Thompson // f bush.
-----------
"No man succeeds without a good woman behind him. Wife or mother, if it is both, he is twice blessed indeed." -Harold MacMillan
eron19
Participant
1499 Points
321 Posts
selected control validation
Mar 27, 2004 06:16 PM|LINK
-----------
"No man succeeds without a good woman behind him. Wife or mother, if it is both, he is twice blessed indeed." -Harold MacMillan
haidar_bilal
All-Star
45609 Points
8730 Posts
MVP
Re: selected control validation
Mar 27, 2004 08:18 PM|LINK
Professional ASP.NET 3.5 Security, Membership, and Role Management with C# and VB
PLBlum
All-Star
30409 Points
5347 Posts
MVP
Re: selected control validation
Mar 27, 2004 09:45 PM|LINK
Creator of Peter's Data Entry Suite (formerly Professional Validation And More and Peter's Date Package) and Peter's Polling Package
www.PeterBlum.com
haidar_bilal
All-Star
45609 Points
8730 Posts
MVP
Re: selected control validation
Mar 28, 2004 11:20 AM|LINK
Professional ASP.NET 3.5 Security, Membership, and Role Management with C# and VB
eron19
Participant
1499 Points
321 Posts
Re: selected control validation
Mar 28, 2004 01:41 PM|LINK
-----------
"No man succeeds without a good woman behind him. Wife or mother, if it is both, he is twice blessed indeed." -Harold MacMillan
eron19
Participant
1499 Points
321 Posts
Re: selected control validation
Mar 28, 2004 01:43 PM|LINK
-----------
"No man succeeds without a good woman behind him. Wife or mother, if it is both, he is twice blessed indeed." -Harold MacMillan