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

can I use PasswordStrength with listview?

1 Answer 45 Views
ListView
This is a migrated thread and some comments may be shown as answers.
moegal
Top achievements
Rank 1
moegal asked on 19 Mar 2013, 10:40 PM
I would like to manually edit a listview and use the password strength checker only the checkPasswordMatch function is asking for the correct client ID

function checkPasswordMatch() {
                var text1 = $find("<%=PasswordInput1.ClientID %>").get_textBoxValue();
                var text2 = $find("<%=PasswordInput2.ClientID %>").get_textBoxValue();
 
                if (text2 == "") {
                    $get("PasswordRepeatedIndicator").innerHTML = "";
                    $get("PasswordRepeatedIndicator").className = "Base L0";
                }
                else if (text1 == text2) {
                    $get("PasswordRepeatedIndicator").innerHTML = "Match";
                    $get("PasswordRepeatedIndicator").className = "Base L5";
                }
                else {
                    $get("PasswordRepeatedIndicator").innerHTML = "No match";
                    $get("PasswordRepeatedIndicator").className = "Base L1";
                }
            }

Can I stick this is a script or code block and get it to work?

Thanks, Marty

1 Answer, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 25 Mar 2013, 07:41 AM
Hi Marty,

I am not completely sure what is your requirement. If you want to execute the aforementioned code to check whether the passwords match you could hook it on Insert button click. If that is not your requirement could you please elaborate a little bit more? Sending us your code declaration and the related code behind will help us to understand your scenario and give you more to the point answer. 

All the best,
Kostadin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
ListView
Asked by
moegal
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Share this question
or