Hi,
it seems that it should implement on server side so call this method on your Button click:
bool ValidatePassword()
{
string pass = txtpass.Text;
bool result = false;
bool isDigit = false;
bool isLetter=false;
bool isLowerChar = false;
bool isUpperChar = false;
bool isNonAlpha = false;
foreach (char c in pass)
{
if (char.IsDigit(c))
isDigit = true;
if (char.IsLetter(c))
{
isLetter=true;
if (char.IsLower(c))
isLowerChar = true;
if (char.IsUpper(c))
isUpperChar = true;
}
Match m = Regex.Match(c.ToString(), @"\W|_");
if (m.Success)
isNonAlpha = true;
}
if (isDigit && isLetter && isLowerChar && isUpperChar && isNonAlpha)
result = true;
return result;
}
hope this will help you.