ASP.NET - Customizing the passwordStrength with style

Asked By Daniel
09-Feb-12 02:09 PM
Hi!I want to customize my password strength with the following requirement:
When the caracter entered by the user are 5 the StrengthIndicatorType should be in red,if 7 in orange, and if 9 in green.
html code:
<asp:PasswordStrength ID="PasswordStrength2" runat="server" TargetControlID="TextBoxPassword" DisplayPosition="RightSide"
 StrengthIndicatorType="Text"
  PreferredPasswordLength="5"
  PrefixText="Strength:"
 TextStrengthDescriptions="Poor;Average;Excellent"
  MinimumNumericCharacters="1"
   MinimumSymbolCharacters="0"
  TextCssClass="TextIndicator_TextBox1"
   RequiresUpperAndLowerCaseCharacters="true">
  </asp:PasswordStrength>

and css:
.TextIndicator_TextBox1 {
 background-color:blue;
 color:White;
 font-family:Arial;
 font-size:x-small;
 font-style:italic
  padding: 2px 3px 2px 3px;  
   }




 
  dipa ahuja replied to Daniel
09-Feb-12 02:40 PM


<div>
  <asp:ScriptManager ID="ScriptManager1" runat="server">
  </asp:ScriptManager>
  <cc1:PasswordStrength ID="PasswordStrength1" runat="server" TargetControlID="TextBox1">
  </cc1:PasswordStrength>
  <br />
  <br />
  <asp:Label ID="Label1" runat="server" ForeColor="OrangeRed" Font-Bold="true" Text="Input your password">
  </asp:Label>
  <asp:TextBox ID="TextBox1" TextMode="Password" runat="server">
  </asp:TextBox>
</div>
  Daniel replied to dipa ahuja
09-Feb-12 03:05 PM
Hi!Please Dipa I dont understand this answer.But please I want something like at yahoo when your new user is registering on the yahoo.com, on the password textbox how it is indicating by changing the color.Thanx!
Create New Account
help
Net hi friends Any one send frequently asked Important questions in C# .Net, ADO .Net, Asp .Net and Sql Server. . . . . . . . tx in Advance. . . . . . Hi, Find this. . (B)What is an IL? (B A) What is scavenging? (B) What are different types of caching using cache object of ASP.NET? (B) How can you cache different version of same page using ASP.NET cache object? (A) How will implement Page Fragment Caching? (B) Can you compare ASP.NET sessions with classic ASP? (B) Which are the various modes of storing ASP.NET session
Settings \ User \ My Documents \ Visual Studio Projects \ 1209 \ db1.mdb”+ _ “User ID = Admin;”+ _ “Password = ;”); Dim cmd As New OleDbCommand(”Products”, cn) cmd.CommandType = CommandType.StoredProcedure Dim da As New in Sql server as var_name int How do you separate business logic while creating an ASP.NET application? There are two level of asp.net debugging 1. Page level debugging For this we have to edit the page level debugging The control itself will take care of the date display How can you deploy an asp.net application ? You can deploy an ASP.NET Web application using any one of the following three deployment options. a) Deployment using
Migration from ASP to ASP.net How to convert ASP site to ASP.NET site using C# http: / / www.asp.net / downloads / archived-v11 / migration-assistants / asp-to-aspnet hi, ASP.NET framework is very much different from unstrucured ASP and there is no correct way to
Tracing in ASP.NET? hi all, what is tracing? how to achieve tracing in asp.net? different ways of doing tracing? thanks and regards Aman Khan hi. . Tracing in ASP.NET 2.0 Tracing is a way to monitor the execution of your ASP.NET application. You can record exception details and program flow in a way that doesn't
session is user based mean u can differentiate login user in different way • Process independent. ASP.NET session state is able to run in a separate process from the ASP.NET host process. If session state is in a separate process, the ASP.NET process can come and go while the session state process remains available. Of course, you ASP, too. • Support for server farm configurations. By moving to an out-of-process model, ASP.NET also solves the server farm problem. The new out-of-process model allows all servers