How to retain password after postback?

3 posts, 0 answers
  1. El
    El avatar
    130 posts
    Member since:
    Dec 2008

    Posted 25 Jan 2011 Link to this post

    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. Cori
    Cori avatar
    562 posts
    Member since:
    Jul 2010

    Posted 26 Jan 2011 Link to this post

    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.
  3. El
    El avatar
    130 posts
    Member since:
    Dec 2008

    Posted 26 Jan 2011 Link to this post

    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
Back to Top