AJAX Password Strength Extender Control


This article demonstrates how to use Password Strength Extender Control.

Note: We are assuming that you have already completed the installion of the Ajax Toolkit as well as have a basic understanding of coding.

This article provides a few steps which will be easy to follow.

Step 1: 

Before you can use any of the Ajax Control Toolkit controls in a page, you first need to add a ScriptManager to the page. You can drag the ScriptManager from the Visual Studio Toolbox window onto the page. The ScriptManager is located in the Ajax Control Toolkit tab under the Toolbox.

Step 2:

Add a Textbox Control and Label control to the page .

Step 3:

Add PasswordStrength control, you can drag the PasswordStrength control  from Ajax control toolkit.

 <ajaxToolkit:PasswordStrength ID="PasswordStrength2" runat="server" TextCssClass="TextIndicator_TextBox1"
                    HelpStatusLabelID="Label1" MinimumNumericCharacters="1" MinimumSymbolCharacters="1"
                    DisplayPosition="RightSide" PreferredPasswordLength="6" RequiresUpperAndLowerCaseCharacters="True"
                    StrengthIndicatorType="Text" TargetControlID="TextBox1" TextStrengthDescriptions="Poor;Weak;Average;Strong;Excellent">        </ajaxToolkit:PasswordStrength>


PasswordStrength control provide some properties-
  • MinimumNumericCharacters
  • MinimumSymbolCharacters
  • PreferredPasswordLength
  • TextStrengthDescriptions
With the use of this property you can change Minimum numeric characters; the minimum symbol character required for a strong password. You can also change minimum password length using PreferredPasswordLength Properties.
            
Step 4:

Run your website...


Similar Articles