SIGN UP MEMBER LOGIN:    
ARTICLE
Reader Level:

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...

Login to add your contents and source code to this article
share this article :
post comment
 
Nevron Gauge for SharePoint
Become a Sponsor
PREMIUM SPONSORS
  • ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications. Visit DynamicPDF here
    Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
Team Foundation Server Hosting
Become a Sponsor