<Ajax:PasswordStrength ID="PasswordStrength1" runat="server" DisplayPosition="RightSide" StrengthIndicatorType="BarIndicator" TargetControlID="TextBox1" PrefixText="Stength:" Enabled="true" RequiresUpperAndLowerCaseCharacters="true" MinimumLowerCaseCharacters="1" MinimumUpperCaseCharacters="1" MinimumSymbolCharacters="1" MinimumNumericCharacters="1" PreferredPasswordLength="10" TextStrengthDescriptions="VeryPoor; Weak; Average; Strong; Excellent" StrengthStyles="VeryPoor; Weak; Average; Excellent; Strong;" CalculationWeightings="25;25;15;35" BarBorderCssClass="border" HelpStatusLabelID="Label1">
</Ajax:PasswordStrength>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="Password_Strength.WebForm1" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="Ajax" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head1" runat="server"> <title></title> <style type="text/css"> .VeryPoor { background-color:red; }
.Weak { background-color:orange; }
.Average { background-color: #A52A2A } .Excellent { background-color:yellow; } .Strong { background-color:green; } .border { border: medium solid #800000; width:500px; } </style> </head> <body> <form id="form1" runat="server"> <div> <Ajax:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"> </Ajax:ToolkitScriptManager> <center> Please Enter Password: <asp:TextBox ID="TextBox1" runat="serverTextMode="Password"></asp:TextBox> </center><br />
<Ajax:PasswordStrength ID="PasswordStrength1" runat="server" DisplayPosition="RightSide" StrengthIndicatorType="BarIndicator" TargetControlID="TextBox1" PrefixText="Stength:" Enabled="trueRequiresUpperAndLowerCaseCharacters="true" MinimumLowerCaseCharacters="1" MinimumUpperCaseCharacters="1" MinimumSymbolCharacters="1MinimumNumericCharacters="1" PreferredPasswordLength="10" TextStrengthDescriptions="VeryPoor; Weak; Average; Strong; Excellent"StrengthStyles="VeryPoor; Weak; Average; Excellent; Strong;" CalculationWeightings="25;25;15;35" BarBorderCssClass="borderHelpStatusLabelID="Label1">
</Ajax:PasswordStrength> </div> <br /> <br /><br /> <br /> <div> <Ajax:PasswordStrength ID="PasswordStrength2" runat="serverDisplayPosition="BelowLeft" StrengthIndicatorType="Text" TargetControlID="TextBox1" PrefixText="Stength:" Enabled="trueRequiresUpperAndLowerCaseCharacters="true" MinimumLowerCaseCharacters="1" MinimumUpperCaseCharacters="1" MinimumSymbolCharacters="1MinimumNumericCharacters="1" PreferredPasswordLength="10" TextStrengthDescriptions="VeryPoor; Weak; Average; Strong; Excellent"BarBorderCssClass="border"> </Ajax:PasswordStrength> </div> <div><br /><br /> <center> <asp:Label ID="Label1" runat="server" Font-Bold="true" Font-Size="MediumForeColor="Brown"></asp:Label> </center> </div> </form> </body> </html>
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: