Home > AJAX > AJAX Password Strength with TextBox

AJAX Password Strength with TextBox


Hi

try this example:-

CSS Code for AJAX Password strength text
 

<style type=”text/css”>

.textIndicator_poor
{
background-color:gray;
padding:2px;
color:#ffff00;
}

.textIndicator_weak
{
background-color:gray;
padding:2px;
color:#00ffff;
}

.textIndicator_good
{
background-color:gray;
padding:2px;
color:lightblue;
}

.textIndicator_strong
{
background-color:gray;
padding:2px;
color:lightgreen;
}

.textIndicator_excellent
{
background-color:gray;
padding:2px;
color:#00ffdd;
}

</style>

 
HTML Code for AJAX Password strength text
 

<asp:TextBox ID=”TextBox1″ runat=”server”></asp:TextBox><br/><cc1:PasswordStrength runat=”server”
ID=”PasswordStrength1″TargetControlID=”TextBox1″
DisplayPosition=”RightSide” MinimumSymbolCharacters=”1″
MinimumUpperCaseCharacters=”1″ PreferredPasswordLength=”10″ CalculationWeightings=”25;25;15;35″
RequiresUpperAndLowerCaseCharacters=”true”
TextStrengthDescriptions=”Poor; Weak; Good; Strong; Excellent”
HelpStatusLabelID=”Label1″StrengthIndicatorType=”Text” HelpHandlePosition=”AboveLeft”
TextStrengthDescriptionStyles=”textIndicator_poor; textIndicator_weak; textIndicator_good; textIndicator_strong; textIndicator_excellent”>
</cc1:PasswordStrength>

<asp:Label ID=”Label1″ runat=”server”Text=”Label”></asp:Label>

Hope this helps

Good Luck

Advertisements
Categories: AJAX
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: