Passwordstrength calculation

2 posts, 0 answers
  1. sho
    sho avatar
    24 posts
    Member since:
    Mar 2007

    Posted 09 Sep 2011 Link to this post

    Hi,

    I am using radtextbox with PasswordStrengthSettings to check my password strength. (from the demo

    Input / Password Strength Check)


    OnClientPasswordStrengthCalculating="CalculatingStrength"

    If the strength is 100 then user should be allowed to save the data. So how can I do this?

    Thanks

  2. Jayesh Goyani
    Jayesh Goyani avatar
    2732 posts
    Member since:
    May 2010

    Posted 10 Sep 2011 Link to this post

    Hello,

    function OnClientPasswordStrengthCalculating() {
                    var RadTextBox1 = $find("<%= RadTextBox1.ClientID %>")
                    if (RadTextBox1.get_value().length > 99) {
                         
                        return true;
                    }
                    else {
     
                        return false;
                    }
                }
    <asp:Button ID="Button123" runat="server" Text="GetLength" OnClientClick="return OnClientPasswordStrengthCalculating();" OnClick="Button123_Click" />
    Protected Void Button123_Click()
    {
       // password strength is 100 or more
    }

    let me know if any concern.

    Thanks,
    Jayesh Goyani
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top