Ajax Control Toolkit PasswordStrength

Modified on 2010/04/16 00:56 by Stephen Walther — Categorized as: Uncategorized

PasswordStrength is an ASP.NET AJAX extender that can be attached to an ASP.NET TextBox control used for the entry of passwords. The PasswordStrength extender shows the strength of the password in the TextBox and updates itself as the user types the password. The indicator can display the strength of the password as a text message or with a progress bar indicator. The styling and position of both types of indicators is configurable. The required strength of the password is also configurable, allowing the page author to tailor the password strength requirements to their needs. The text messages that describe the current strength of the password can also be configured and their default values have localization support built-in. The second and third extenders' strings are being pulled from Toolkit resources files. We do not have strings for all languages currently so they may show non-localized values for some languages. A help indicator can be used to provide explicit instructions about what changes are required to achieve a strong password. The indicator is displayed when the user begins typing into the TextBox and is hidden from view once the TextBox loses focus.

PasswordStrength Server Properties

The properties in italics are optional.

<ajaxToolkit:PasswordStrength ID="PS" runat="server"
    TextStrengthDescriptions="Very Poor;Weak;Average;Strong;Excellent"
    CalculationWeightings="50;15;15;20" />