The Microsoft Validation framework does not offer any hooks where you can
take a post-validation action. You will have to invent a hack.
Alternatively, you can switch to "Professional Validation And More"
(
http://www.peterblum.com/vam/home.aspx). It is a replacement to Microsoft's
validators that overcomes numerous limitations and addresses the many
features users have asked for with validation.
For example:
1. Every validator has a new property called the Enabler where you establish
a rule that determines if the validator shows or not. This may apply to your
problem.
2. It supports a concept called "validation groups". This allows multiple
submit buttons on the page to fire only their own validators.
3. It has a hook that is called after validation is performed. You insert
your javascript and attach it to the hook.
4. It includes a control called the FieldStateController. Its job is to
monitor clicks on controls and change the settings of other controls. It can
show and hide fields easily.
All of this is multibrowser compatible, supporting far more browsers than
Microsoft's do. (Microsoft's is limited to DHTML browsers: IE and IE/Mac).
Download a free trial version to investigate further and drop me an email if
you have any questions.
--- Peter Blum
www.PeterBlum.com
Email:
PL****@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx
"M@" <no*@sorry.com> wrote in message
news:2u********************@twister2.libero.it...
Hi,
it's possible to append a custom action
to a client-side verification of a validation control ?
I have a validator summary control that shows
(automatically) a message box if the validation
of the validators in the page fails; after the user close this
message box I have to perform a client-side function
(hiding some text) ... it's possible?
Thanks!
M