473,396 Members | 1,936 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Maintaining values of password fields across callbacks

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
3 2983
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
"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Antoni | last post by:
Hello, I wondered if anyone could advise? I am trying to write a basic script, which allows user's to enter there username, password in text fields. Then we take these values and pass them to...
4
by: lost hope | last post by:
hey guys, on the main page of my site, i have a login area (user/pass text boxes). when the user submits the form, the page is reloaded with with a global php variable "loggedIn" set to true. i...
3
by: Zb Bornemann | last post by:
Hi All, Ok. Here's what my table looks like: Field1 Field2 Field3 Field4... Record1 1 3 2 9 Record2 9 1 9 ...
3
by: MattC | last post by:
I have created a container class and instantiated it in one of my pages. I fill the object on page load when not on a postback. On a button click i want to do somethign with the values in that...
3
by: User | last post by:
Form A (Main) Text Box 1 Text Box 2 Text Box 3 Form B (Pop-up) Choose a selection for Form A/Text Box 3 Scenario:
3
by: mkjets | last post by:
I have worked for hours on trying to find a solution and have not figured it out. I am working in Access 2003. I need to create a query that takes values from 1 table and displays them in...
2
by: M | last post by:
I have about 14 tables that I am trying to tie together in a view to see a user's status in our company. Joe User: Email - Active ADP - Active Portal - Inactive etc. We need to track...
4
by: Nathan Sokalski | last post by:
I have 2 private variables in my class that I need to remember the values of between postbacks (or actually callbacks, since I am using AJAX). I want to avoid using session variables, if possible....
10
by: =?Utf-8?B?R3JlZw==?= | last post by:
I have the following three files. 1. Users.aspx is a webpage that uses the <asp:ObjectDataSourcecontrol to populate a simple <asp:ListBoxcontrol. 2. The UserDetails.cs file creates a Namespace...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.