Hi Joe,
Validation groups are available in third party replacements to the ASP.NET
validators.
I created "Professional Validation And More"
(
http://www.peterblum.com/vam/home.aspx) to address a large list of
limitations and missing features in validation. Each of my 22 validators
supports "validation groups" and my client-side validation works on far more
browsers than the original validators do. My validators also have the
ability to smartly enable themselves based on setttings on the page, like if
a checkbox is checked, then the validator is enabled. You will find
extensive improvements on how validators and the ValidationSummary control
communicate with the user, like changing the color of the field with the
error and offering a hyperlink on each error message in the
ValidationSummary to jump to the field with the error.
--- Peter Blum
www.PeterBlum.com
Email:
PL****@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx
"Joe Abou Jaoude" <an*******@devdex.com> wrote in message
news:Oc*************@TK2MSFTNGP15.phx.gbl...
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 one custom validator (for all the web
page) that detects the button that has been clicked and perform
validation. In this way, I m writting the validation using javascript
code. I managed to do this before however now I m facing more and more
complicated validations, so I was wondering if there's a way to disable
some validators according to the button that has been clicked.
Regards
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!