Using Visual Studio.net 1.1 with asp.net.
Need sample code on creating client side javascript, which will be
called by asp.net CustomValidator.
For sample, consider validation of 2 textbox'es name_1 and age_1,
where these are valid if both are empty or both are populated; invalid
if only one is populated. If invalid, will set
CustomValidator.ErrorMessage to "name_1 required" or "age_1 required".
CustomValidator will not have ControlToValidate set, as this involves
2 controls.
I will be satisfied if I can build this project and meet these requirements.
Of course, my custom validation is much more complex, but this should
get me started.
Thank you.
P.S. I do believe in tipping for great service!!! |