G
Guest
Can I create a generic Javascrip custom validator in which I can pass
multiple parameters? Looking at examples, it does not appear that I can. I
want to create a custom validator which will look at the value of two
controls and depending on those values either set the "style" of another
control to either visible or invisible.
Since the code is generic, I want to pass the names of the three controls to
the javascript routine....sounds like I can only pass the name of the control
to which the Validation control is associated with....Is this correct?
So I can not write a generic routine as I have described? I have to write a
"specific" non-generic routine in which the other 2 control names are hard
coded in the javascript code?
multiple parameters? Looking at examples, it does not appear that I can. I
want to create a custom validator which will look at the value of two
controls and depending on those values either set the "style" of another
control to either visible or invisible.
Since the code is generic, I want to pass the names of the three controls to
the javascript routine....sounds like I can only pass the name of the control
to which the Validation control is associated with....Is this correct?
So I can not write a generic routine as I have described? I have to write a
"specific" non-generic routine in which the other 2 control names are hard
coded in the javascript code?