I am trying to write a custom validator using javascript and I am simply trying to determine the length of what should be a string...
function ClientValidate(source,args)
{
alert(""+args.Value.Length);
args.IsValid=true;
}
I added the ""+ to try to ensure that it was forced to a string but I am obviously missing something.. any assistance would be greatly appreciated. TIA
function ClientValidate(source,args)
{
alert(""+args.Value.Length);
args.IsValid=true;
}
I added the ""+ to try to ensure that it was forced to a string but I am obviously missing something.. any assistance would be greatly appreciated. TIA