Click here to Skip to main content
13,250,043 members (66,965 online)
Click here to Skip to main content
Articles » Web Development » ASP.NET » General » Downloads


184 bookmarked
Posted 11 Jan 2011

ASP.NET - Password Strength Indicator using jQuery and XML

, 31 Jul 2012
ASP.NET Password Strength Indicator somewhat similar to AJAX PasswordStrength extender control behavior and implemented by using jQuery and XML.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

<html xmlns="">
    <title>ASP.NET - jQuery Password Strength Indicator</title>
     <style type="text/css">
    <h2>ASP.NET - jQuery Password Strength Indicator</h2>
<div style="height:400px">
<br />
<label for="txtPassword">Enter Password:</label>
<input id="txtPassword" type="text" />
<br /><a id="passwordPolicy" href="#">Password policy</a> <br /><br />


<script src="Script/jquery-1.4.4.min.js" type="text/javascript"></script>
<script src="Script/jquery.password-strength.min.js" type="text/javascript"></script>

<script type="text/javascript">
    $(document).ready(function() {
        var myPSPlugin = $("[id$='txtPassword']").password_strength();

        $("[id$='btnSubmit']").click(function() {
            return myPSPlugin.metReq(); //return true or false

        $("[id$='passwordPolicy']").click(function(event) {
            var width = 350, height = 300, left = (screen.width / 2) - (width / 2),
            top = (screen.height / 2) - (height / 2);
  "PasswordPolicy.xml", 'Password_poplicy', 'width=' + width + ',height=' + height + ',left=' + left + ',top=' + top);
            return false;



By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Bryian Tan
Software Developer (Senior)
United States United States
I have over 10 years of experience working with Microsoft technologies. I have earned my Microsoft Certified Technology Specialist (MCTS) certification. I'm a highly motivated self-starter with an aptitude for learning new skills quickly.

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.171114.1 | Last Updated 31 Jul 2012
Article Copyright 2011 by Bryian Tan
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid