Hi!I want to customize my password strength with the following requirement:
When the caracter entered by the user are 5 the StrengthIndicatorType should be in red,if 7 in orange, and if 9 in green.
html code:
<asp:PasswordStrength ID="PasswordStrength2" runat="server" TargetControlID="TextBoxPassword" DisplayPosition="RightSide"
StrengthIndicatorType="Text"
PreferredPasswordLength="5"
PrefixText="Strength:"
TextStrengthDescriptions="Poor;Average;Excellent"
MinimumNumericCharacters="1"
MinimumSymbolCharacters="0"
TextCssClass="TextIndicator_TextBox1"
RequiresUpperAndLowerCaseCharacters="true">
</asp:PasswordStrength>
and css:
.TextIndicator_TextBox1 {
background-color:blue;
color:White;
font-family:Arial;
font-size:x-small;
font-style:italic;
padding: 2px 3px 2px 3px;
}