ARTICLE

PasswordStrength Extender Control in Ajax

Posted by Davin Martyn Articles | ASP.NET AJAX in VB.NET September 20, 2011
This article demonstrates how to use PasswordStrength Extender Control.
 
Reader Level:

Introduction : PasswordStrength Extender Control provide the functionality to show the required compositon of password for creating the strong and secure password. When we use Ajax PasswordExtender Control then attach TextBox server control in webform.

PasswordStrength Extender Control Properties.

  • DisplayPosition.
  • HelpHandlePossition.
  • MinimumNumericCharacter.
  • MinimumSymbolCharacter.
  • PrefixText.
  • TargetControl ID.
  • TextStrengthDescription.

Step : 1 Open visual studio and go to file menu option.

  • Select WebSite option.
  • Select ASP.NET Web Site.
  • Default.aspx page open.
ASP-page1.gif

Step : 2 Go to Solution Explorer and right click.
  • Select Add New Item option.
  • Select WebForms option.
webforms.gif

Step : 3 Go to design option and drag and drop control in ToolBox.
  • We take TextBox, Label control.
  • We select Password Strength Extender from Ajax Control ToolKit.
  • ScriptManagerControl in Ajax Control ToolKit.
control-page3.gif

Step : 4 Write a code for Password creations.

Code :

<title> my password</title>
</head>
<
body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div>
     <asp:Label ID="Label1" runat="server" Text="Password" BackColor = "RosyBrown"></asp:Label>
        <asp:TextBox ID="TextBox2" runat="server" Width ="100px" AutoComplete = "Off"></asp:TextBox>
        <asp:PasswordStrength ID="PasswordStrength1" runat="server" TargetControlID = "TextBox2" DisplayPosition = "RightSide" StrengthIndicatorType ="Text" PreferredPasswordLength = "8" PrefixText = "Strength:" HelpStatusLabelID = "Lable1" TextStrengthDescriptions ="weak;average;strong" MinimumNumericCharacters = "1" MinimumSymbolCharacters ="1" RequiresUpperAndLowerCaseCharacters = "false"   >
    </asp:PasswordStrength>
    </div>
    </form
>
</body>
</
html>

Step : 5 Now press F5 and run.

password.gif

Login to add your contents and source code to this article
share this article :
post comment
 
Nevron Diagram
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.
    The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
Nevron Diagram
Become a Sponsor