AJAX Control toolkit PasswordStrength Extender using C#


V4 Ajax Tutorials

AJAX Control toolkit PasswordStrength Extender using C#

Looking for a Tutorial based on the AJAX control toolkit PasswordStrength Extender?

Test your Might! Well not really, want to add an easy and simple way to require stronger passwords to your website? Have some sensitive information you would like saved, and stored online? Then the PasswordStrength Control may be the tool for you!
This AJAX control is so easy to use you might end up using for all of your websites and projects,
The PasswordStrength Control Attaches to an ASP Textbox and with a use of a label you define where they password entered is sufficient enough per your standards. You can define how many characters are required. You can also require you password to include symbols as well, you can even enforce capitalization. By having a label message or text with some CSS styling you can display a meter of how strong the password is. 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 encourage you to download the source code to follow the tutorial, as this control can get a little tricky you can then reference the code. Our goal is to make learning AJAX easy.
 
Step 1. Add a new webform
Let's begin by opening Visual Studio 2010 
Go ahead and add a new webform and we will name it PasswordStrength.aspx
Go to Design View

Step 2. Adding AJAX
Let’s Enable AJAX by dragging over the AJAX Control Tool Script Manager
Remember you must always add a Tool Script Manager to your webpage to enable the AJAX control toolkit feature.

Step 3. Design
We will begin by adding a Textbox. – Remember to set the Target ID of the TextBox; this will be the text box where you will enter your password.
Next let’s add a PasswordStrength Extender. You can either drag & drop or you can click on the tab tool to the right of the textbox, and you will be asked to add an extender. From there choose the Password Strength Extender.
Remember to set the Target controls and Properties.
Now let’s add a label control to the document, you can drag and drop this as well, let’s place right below, this label will aid your users, with instructions, for Example passwords need to needs to 7 characters long with 1 symbol and 1 capital letter.
Now we can add Styles to the textbox indicator, to spruce it up a bit.
You can find the Styles in the source code as well.
 
 The markup of the page will look like
  
 
 
.textbox {
border: solid 2px #cccccc;
border-top: solid 2px #a0a0a0;
}
 
</style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <cc1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </cc1:ToolkitScriptManager>
    <asp:Label ID="Label2" runat="server" Font-Bold="true" Font-Size="14px" Text="Enter Password: "></asp:Label>
 
<asp:TextBox CssClass="textbox" ID="TextBox1" runat="server" Width="200"></asp:TextBox>
 
<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="BarIndicator"
HelpHandlePosition="AboveLeft"
BarBorderCssClass="barIndicatorBorder"
StrengthStyles="barIndicator_poor; barIndicator_weak; barIndicator_good; barIndicator_strong; barIndicator_excellent">
</cc1:PasswordStrength>
 
 Load the page in browser looks like as follows
 
 
 
As you can see above, we added a Textbox and PasswordStrength Extender Below the TextBox you enter your password and you have a meter to the right gauging how strong the password is.
This Control is very flexible and should be used at every opportunity where password strength is needed, particularly on a high traffic website.
See how easy that was?
Not as Easy When we,
 
We migrated our web sites to Server Intellect over one weekend and the setup was so smooth that we were up and running right away. They assisted us with everything we needed to do for all of our applications. With Server Intellect'shelp, we were able to avoid any headaches!
Thank you for reading our tutorial on AJAX Controls, we aim to provide the best AJAX tutorials. Learning AJAX in ASP.NET is easy and we hope you are getting your hands dirty by trying different things and coming up with your own ideas. If you have any questions or concerns, please feel free to suggest a tutorial or you can comment below in the comments section.
 
AJAXTutorials.com
 


Comments
Sengkang West Way EC said:

The condo’s facilities provide full family entertainment needs for your family and loved ones. Indulge in a serene and tranquil lifestyle right in the heart of Sengkang and Fernvale

Posted Jun 21, 2013 12:46 AM
Penge said:

Before you can use any of the Ajax Control Toolkit controls in a page, you first need to add a ScriptManager to the page. You can drag the ScriptManager from the Visual Studio Toolbox window onto the page. The ScriptManager is located in the Ajax Control Toolkit tab under the Toolbox.

Posted Jun 28, 2013 12:56 AM
http://nordic-airfiltration.dk/idx/ said:

Test your Might! Well not really, want to add an easy and simple way to require stronger passwords to your website? Have some sensitive information you would like saved, and stored online? Then the PasswordStrength Control may be the tool for you!

Posted Jul 4, 2013 5:41 AM
7geekz.com said:

Really nice style and design and excellent content , nothing at all else we need! .

Posted Jul 17, 2013 6:18 AM
Skypark Residences said:

Skypark Residences has full and unique facilities, which includes a guard house, clubhouse, Function Room & Indoor Gym Tennis Court, 50m Freeform Pool Pool Deck, Wading Pool, Splash Pool & Family Pool Jacuzzi & Hydro Spa, BBQ Area Dining and Play Fountain, Fitness Alcove & Children’s Playground and Garden Trail.

Posted Aug 4, 2013 11:11 PM
ph metre fiyatları said:

Before you can use any of the Ajax Control Toolkit controls in a page, you first need to add a ScriptManager to the page.

Posted Aug 7, 2013 2:19 PM
stageof-art.com said:

Before you can use any of the Ajax Control Toolkit controls in a page, you first need to add a ScriptManager to the page. You can drag the ScriptManager from the Visual Studio Toolbox window onto the page. The ScriptManager is located in the Ajax Control Toolkit tab under the Toolbox.

Posted Aug 16, 2013 2:55 AM
The Panorama said:

The Panorama has full and unique facilities, which includes a guard house, clubhouse, children's playground, swimming pool, piano room, pool room, indoor gym,

Posted Aug 30, 2013 1:04 AM
sbobet said:

I was just seeking this info for a while. After six hours of continuous Googleing, finally I got it in your web site. I wonder what's the lack of Google strategy that do not rank this kind of informative websites in top of the list. Normally the top websites are full of garbage.

Posted Sep 9, 2013 12:37 PM
The Inflora said:

The Inflora Condo has full and unique facilities, which includes a guard house, clubhouse, children’s playground, swimming pool, kid’s pool, function room, dining pavilion, playground, poolside BBQ, waterjet pool.

Posted Sep 13, 2013 2:30 AM
Turun Berat Badan said:

Hello there nice studying your informative articles. I found your blog and simply wished to say thanks!! It's assist me an awesome great deal

Posted Sep 14, 2013 10:58 AM
Bishan Sky Vue said:

Future residents are within walking distance to Bishan Junction 8 and a short drive to Ang Mo Kio Hub from Sky Vue Condo. With such a short drive to the city area as well as the orchard and bugis area, entertainment for your love ones and family will come at a stone’s throw away from Sky Vue Condo

Posted Sep 17, 2013 12:53 AM

Leave a Comment