This article show you how you can use a password strength
checker using AJAX password strength control.
Step 1)Open a ASP.Net AJAX enable website in your visual
Studio
Step 2)Add below code in your ASP.net page
<%@ Page Language="C#"
AutoEventWireup="true"
CodeFile="password_strength.aspx.cs"
Inherits="password_strength"
%>
<%@ Register Assembly="AjaxControlToolkit"
Namespace="AjaxControlToolkit"
TagPrefix="cc1"
%>
<!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 runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1"
runat="server">
</asp:ScriptManager>
Enter
password:-<asp:TextBox ID="TextBox1"
runat="server"
></asp:TextBox>
<cc1:PasswordStrength ID="PasswordStrength1"
runat="server"
TargetControlID="TextBox1">
</cc1:PasswordStrength>
</div>
</form>
</body>
</html>
No comments:
Post a Comment