By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,905 Members | 894 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,905 IT Pros & Developers. It's quick & easy.

Maintaining values of password fields across callbacks

P: n/a
I have an UpdatePanel that needs to maintain the value of several TextBoxes
with TextMode=Password. Since the browser clears all password fields
client-side, I obviously need to use JavaScript to do this. Can someone help
me? Thanks.

Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/
Sep 10 '08 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Which browser is this (IE, FireFox) ? How are those fields cleared ? Are
they part of the update panel ? AFAIK there is nothing special with
passwords.

My first move would be likely to change them to textboxes so that you can
see how it behaves (and to see if it works as expected). For now I'm not
sure that the fact they are for passwords has something to do with the
problem...

--
Patrice

"Nathan Sokalski" <ns*******@kyledavidgroup.coma écrit dans le message de
groupe de discussion : uh**************@TK2MSFTNGP04.phx.gbl...
I have an UpdatePanel that needs to maintain the value of several
TextBoxes with TextMode=Password. Since the browser clears all password
fields client-side, I obviously need to use JavaScript to do this. Can
someone help me? Thanks.

Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/
Sep 10 '08 #2

P: n/a
"Patrice" <http://www.chez.com/scribe/wrote in message
news:eX**************@TK2MSFTNGP04.phx.gbl...

[top-posting corrected]
>I have an UpdatePanel that needs to maintain the value of several
TextBoxes with TextMode=Password. Since the browser clears all password
fields client-side, I obviously need to use JavaScript to do this. Can
someone help me? Thanks.

AFAIK there is nothing special with passwords.
There is...
My first move would be likely to change them to textboxes
I believe that they are already TextBoxes, judging by the OP's statement of
"several TextBoxes"...
For now I'm not sure that the fact they are for passwords has something to
do with the problem...
It has - this is the default behaviour for TextBoxes which have their
TextMode set to "Password".

Fortunately, it's simple enough to work round:
http://www.codeproject.com/KB/custom...d_TextBox.aspx
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Sep 10 '08 #3

P: n/a
The browser is IE7, and the password fields are cleared by the browser,
there is no code that I use to clear them. I know that it is only the
password fields that this is happening to because the UpdatePanel contains
password and non-password fields, but only the password fields are cleared.
I have seen many other websites in which the password fields get cleared
after a submit button is clicked, so I am pretty sure it's not just me. If I
make them regular textboxes, then I obviously won't have this problem, but
we do make certain fields password fields for a reason. Any ideas? Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"Patrice" <http://www.chez.com/scribe/wrote in message
news:eX**************@TK2MSFTNGP04.phx.gbl...
Which browser is this (IE, FireFox) ? How are those fields cleared ? Are
they part of the update panel ? AFAIK there is nothing special with
passwords.

My first move would be likely to change them to textboxes so that you can
see how it behaves (and to see if it works as expected). For now I'm not
sure that the fact they are for passwords has something to do with the
problem...

--
Patrice

"Nathan Sokalski" <ns*******@kyledavidgroup.coma écrit dans le message
de groupe de discussion : uh**************@TK2MSFTNGP04.phx.gbl...
>I have an UpdatePanel that needs to maintain the value of several
TextBoxes with TextMode=Password. Since the browser clears all password
fields client-side, I obviously need to use JavaScript to do this. Can
someone help me? Thanks.

Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

Sep 10 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.