The validation function has to use the signature function ClientsideValidationScript(source, args).
You would have to set the IsValid member of the args parameter to true or false, depending on the result of the check condition.
Example:
function Scriptology(source, args)
{
var x = document.getElementById('txtNitin').value;
if (x > 5)
args.IsValid = true;
else
args.IsValid = false;
}
No comments:
Post a Comment