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

How to retain password after postback?

2 Answers 204 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
El
Top achievements
Rank 1
El asked on 25 Jan 2011, 02:40 PM
it is a very simple scenario. I have a RadTextBox in Password mode which is nested in RadMultiPage.
When i click a checkbox with enabled AutoPostback AJAX loading panel appears and the password field is empty.
As you see i have a RadAjaxManager. Otherwise i would simply say:

If IsPostBack Then
     If Not String.IsNullOrEmpty(Password.Text.Trim()) Then
         Password.Attributes.Add("value", Password.Text)
     End If
     If Not String.IsNullOrEmpty(ConfirmPassword.Text.Trim()) Then
         ConfirmPassword.Attributes.Add("value", ConfirmPassword.Text)
     End If
 End If


Thank you 

2 Answers, 1 is accepted

Sort by
0
Cori
Top achievements
Rank 2
answered on 26 Jan 2011, 02:13 PM
Hello El,

Their has been a long discussion about this on the Input forum and their is no way to persist the password in a RadTextBox or a standard asp TextBox when they are in password mode because that is the nature of the control.
0
El
Top achievements
Rank 1
answered on 26 Jan 2011, 02:16 PM
I disagree with you. If i am not using RadAjaxManager it works perfectly fine with the code i posted previously.
It seems that AJAX environment has a diff rules guessing that i should use another Event handler to put this hack to. 
I hope that one of the telerik admin will send solution soon. 

Thanks
Tags
Ajax
Asked by
El
Top achievements
Rank 1
Answers by
Cori
Top achievements
Rank 2
El
Top achievements
Rank 1
Share this question
or