Maintaining text in a password type textbox

2 posts, 0 answers
  1. EmpowerIT
    EmpowerIT avatar
    117 posts
    Member since:
    Jun 2007

    Posted 12 Mar 2008 Link to this post

    I'm trying to have some sort of feedback given to the user about the strength of the password, which is calculated on the server. I have a textchanged event that fires and updates some labels and the like. However, when it re loads the page, the text in the textbox is gone ....

    Is it possible to maintain the values of a textbox that is set to password type in between postbacks (ajax or regular)?

    If so, how?

  2. Giuseppe
    Giuseppe avatar
    2363 posts

    Posted 13 Mar 2008 Link to this post

    Hello EmpowerIT,

    We believe this is default behavior of input type="password" and it is implemented for security reasons. You can try performing ajax requests through the client-side API to check the password strength (you will probably need to pass the current value as an argument) but you need to make sure the password field is not updated on the ajax request as otherwise it will be reset just like in regular postback.

    Sincerely yours,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. DevCraft R3 2016 release webinar banner
Back to Top