This is a migrated thread and some comments may be shown as answers.

Passwordstrength calculation

1 Answer 19 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
sho
Top achievements
Rank 1
sho asked on 09 Sep 2011, 01:04 PM
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

1 Answer, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 10 Sep 2011, 08:04 PM
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
Tags
General Discussions
Asked by
sho
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Share this question
or