AJAX Password Strength Extender shows the strength of user chosen passwords.the strength can be show in a
text form, a bar indicator or combination of both.Now i am going to show you how to add ajax password extender control to a asp.net page,
In case of Visual studio 2005 install AjaxControlToolkit and in case of Visual studio 2010 add AjaxControlToolkit.dll in the project.
I have added a text box and a label control in the page and page will be look like this:
After that Add password strength code in the aspx file of the web page.
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<div>
Status Bar Indicators<br />
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox><br />
<asp:Label ID="Label2" runat="server" Width="154px"></asp:Label><br />
<br />
<br />
<ajaxToolkit:PasswordStrength ID="PasswordStrength2" runat="server" TargetControlID="TextBox2"
DisplayPosition="RightSide"
StrengthIndicatorType="BarIndicator"
BarIndicatorCssClass="BarIndicator"
BarBorderCssClass="BarBorder"
PreferredPasswordLength="10"
PrefixText="Strength:"
TextStrengthDescriptions="Very Poor;Weak;Average;Strong;Excellent"
MinimumNumericCharacters="1"
MinimumSymbolCharacters="1"
HelpStatusLabelID="Label2"
RequiresUpperAndLowerCaseCharacters="true">
</ajaxToolkit:PasswordStrength>
</div>
</form>
</body>
Here is the CSS classes which are used in the above code.
.BarIndicator {
color:Blue;
background-color:Blue;
padding-bottom:1px;
}
.BarBorder{
border-style:solid;
border-width:1px;
width:200px;
vertical-align:middle;
}
After that run the project.out put will be look loke this:
Happy Programming..:)
text form, a bar indicator or combination of both.Now i am going to show you how to add ajax password extender control to a asp.net page,
In case of Visual studio 2005 install AjaxControlToolkit and in case of Visual studio 2010 add AjaxControlToolkit.dll in the project.
I have added a text box and a label control in the page and page will be look like this:
After that Add password strength code in the aspx file of the web page.
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<div>
Status Bar Indicators<br />
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox><br />
<asp:Label ID="Label2" runat="server" Width="154px"></asp:Label><br />
<br />
<br />
<ajaxToolkit:PasswordStrength ID="PasswordStrength2" runat="server" TargetControlID="TextBox2"
DisplayPosition="RightSide"
StrengthIndicatorType="BarIndicator"
BarIndicatorCssClass="BarIndicator"
BarBorderCssClass="BarBorder"
PreferredPasswordLength="10"
PrefixText="Strength:"
TextStrengthDescriptions="Very Poor;Weak;Average;Strong;Excellent"
MinimumNumericCharacters="1"
MinimumSymbolCharacters="1"
HelpStatusLabelID="Label2"
RequiresUpperAndLowerCaseCharacters="true">
</ajaxToolkit:PasswordStrength>
</div>
</form>
</body>
Here is the CSS classes which are used in the above code.
.BarIndicator {
color:Blue;
background-color:Blue;
padding-bottom:1px;
}
.BarBorder{
border-style:solid;
border-width:1px;
width:200px;
vertical-align:middle;
}
After that run the project.out put will be look loke this:
Happy Programming..:)
is it the same control you used in your project???
ReplyDeleteyes i used this control in my Project.
ReplyDeletewell that's nice. :)
ReplyDeletethis look so simple. wow
ReplyDelete