J
Joe Abou Jaoude
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
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