Ajax PasswordStrength Extender Control in VB.NET

This article demonstrates how to use PasswordStrength Extender Control.
  • 2612

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.

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

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.

Step : 4 Write a code for Password creations.

Code :

<title> my password</title>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
     <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"   >

Step : 5 Now press F5 and run.



More Articles

© 2020 DotNetHeaven. All rights reserved.