var regExpPassword = /[a-zA-Z0-9!%#$@.]{6,20}/;
// Match the Text box Value Aganist The Regular Expression.
// If there is a match return true otherwise return false.
if (!txtPassword.value.match(regExpPassword)) {
document.getElementById(“divPasswordTooltip”).innerHTML = “<div class=’imgarrwRed’></div><div class=’TextBoxRed1′ align=’left’ ><img src=’images/homeandreg/XX-Sign.gif’style=’position: relative; top: 2px; left: 0px;’ /> The password must contain at least six characters or more. Password allows alphabets, numbers and $ # % ! @, space not allowed.</div>”;
return false;
}
Related posts:
- Distinct keyword with IEqualityComparer Here I am writing an article on Distinct keyword...
- Implement Secure .NET Web Services with WS-Security Implement Secure .NET Web Services with WS-Security Implement secure...
Related posts brought to you by Yet Another Related Posts Plugin.
Filed under:
Vb.net
Leave a comment