Ajax PasswordStrength Extender Control in VB.NET

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

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

Categories

More Articles

© 2019 DotNetHeaven. All rights reserved.