I need to validate a text box in an ASP.NET project and am trying to use JavaScript even though I have never used it before. My task is so simply, I am embarrassed to ask; how do I ensure my string is at least 6 characters?
Here is my existing code:
I get an "Object Required" error when it runs.Code:<script language="javascript"> function PasswordCheck(source, arguments) { if string.length(arguments.value) > 5) arguments.IsValid=true; else arguments.IsValid=false; } </script>![]()





Reply With Quote