How to check the strength of the password using PasswordStrength Ajax control in asp.net


This post expalins how to check the strength of the password which is entered in the


New to Office 365 SharePoint Online? Get Office 365 Enterprise E3 Subscription & Try out all the features

text box using PasswordStrength control from ajaxtoolkit.

The source page is as follows:

<html xmlns=”http://www.w3.org/1999/xhtml”>

<head runat=”server”>

<title> Password Strength control Example</title>

<style type=”text/css”>

.c1

{

width:200px;

height:180px;

background-color:Aqua;

color:Maroon;

padding:15px;

}

</style>
</head>

<body>

<form id=”form1″ runat=”server”>

<div>

<asp:ToolkitScriptManager runat=”server”>

</asp:ToolkitScriptManager>

<asp:Panel ID=”p1″ runat=”server” CssClass=”c1″>

Password Strength:

<asp:TextBox ID=”t2″ runat=”server”></asp:TextBox>

<asp:PasswordStrength ID=”ps1″ runat=”server” TargetControlID=”t2″

DisplayPosition=”RightSide” StrengthIndicatorType=”Text” PreferredPasswordLength=”12″

PrefixText=”strength:” MinimumNumericCharacters=”2″

MinimumSymbolCharacters=”2″ RequiresUpperAndLowerCaseCharacters=”false”

TextStrengthDescriptions=” weak;average;strong;excellent”

CalculationWeightings=”30;25;25;20″>

</asp:PasswordStrength>

</asp:Panel>

</div>


</form>

</body>

</html>

Check out Best Alternative to InfoPath -> Try Now

FREE SHAREPOINT 2019 PDF

(Installation & Features)



About Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SharePointSky.com

View all posts by Bijay Kumar →