473,387 Members | 1,611 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,387 software developers and data experts.

How to restore password TextBox

I have a form with 5 TextBox controls. One of them is a password TextBox.
When the form is submitted, one of the other fields might have an invalid
format; on the repost showing the error in the other field, I want to
restore the password value into the password TextBox...without the user
re-entering it.

Seems like, by default, a password TextBox is blank on a repost. How can I
automatically reset the TextBox so that it has ***** in it, but the value is
the original password entered by the user?

Amil
Nov 18 '05 #1
4 2674
It's this way by default for security reasons. If you populate the password textbox prior to sending it to the client broswer it will leave the password exposed in the source of the html document

There's a way to get around it using Javascript but as I mentioned above it will leave the password exposed

Also it's normal for web forms that have secured fields to have the user refill the secure information if the original submit fails

HTH
Suresh

----- Amil Hanish wrote: ----

I have a form with 5 TextBox controls. One of them is a password TextBox
When the form is submitted, one of the other fields might have an invali
format; on the repost showing the error in the other field, I want t
restore the password value into the password TextBox...without the use
re-entering it

Seems like, by default, a password TextBox is blank on a repost. How can
automatically reset the TextBox so that it has ***** in it, but the value i
the original password entered by the user

Ami

Nov 18 '05 #2
It's this way by default for security reasons. If you populate the password textbox prior to sending it to the client broswer it will leave the password exposed in the source of the html document

There's a way to get around it using Javascript but as I mentioned above it will leave the password exposed

Also it's normal for web forms that have secured fields to have the user refill the secure information if the original submit fails

HTH
Suresh

----- Amil Hanish wrote: ----

I have a form with 5 TextBox controls. One of them is a password TextBox
When the form is submitted, one of the other fields might have an invali
format; on the repost showing the error in the other field, I want t
restore the password value into the password TextBox...without the use
re-entering it

Seems like, by default, a password TextBox is blank on a repost. How can
automatically reset the TextBox so that it has ***** in it, but the value i
the original password entered by the user

Ami

Nov 18 '05 #3
some thing like

txtPassword.attributes.add("value","thepassword")

"Amil Hanish" <am********@hotmail.com> wrote in message
news:uS*************@tk2msftngp13.phx.gbl...
I have a form with 5 TextBox controls. One of them is a password TextBox.
When the form is submitted, one of the other fields might have an invalid
format; on the repost showing the error in the other field, I want to
restore the password value into the password TextBox...without the user
re-entering it.

Seems like, by default, a password TextBox is blank on a repost. How can I automatically reset the TextBox so that it has ***** in it, but the value is the original password entered by the user?

Amil

Nov 18 '05 #4
some thing like

txtPassword.attributes.add("value","thepassword")

"Amil Hanish" <am********@hotmail.com> wrote in message
news:uS*************@tk2msftngp13.phx.gbl...
I have a form with 5 TextBox controls. One of them is a password TextBox.
When the form is submitted, one of the other fields might have an invalid
format; on the repost showing the error in the other field, I want to
restore the password value into the password TextBox...without the user
re-entering it.

Seems like, by default, a password TextBox is blank on a repost. How can I automatically reset the TextBox so that it has ***** in it, but the value is the original password entered by the user?

Amil

Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: SD | last post by:
Hi, Quick question, I have about 20 users in my local server and database. We are looking to restore that database to a new server in a new network and still be able to retain the database...
1
by: Rajesh Kapur | last post by:
Hello, We are on MySQL 4.0.21 on linux. We use InnoDB tables and foreign key constraints extensively. The mysqldump backs up the database tables in alphabetical order with foreign key...
4
by: ScottH | last post by:
I am running 7.2 with fixpack 10a under W2K. I got a backup from someone else in an attempt to debug a data issue. The other person created the database with UTF-8 (codepage 1208), so I created a...
4
by: Andy J | last post by:
Hi Everyone NEW USER Q. I am trying to restore a database backup image to another machine. Both machines are installed with same DB2 7.2 installation package. Version: 7, Release: 2,...
0
by: Andy J | last post by:
Hi Everyone NEW USER Q. I am trying to restore a database backup image to another machine. Both machines are installed with same DB2 7.2 installation package. Version: 7, Release: 2,...
2
by: Amil Hanish | last post by:
I have a form with 5 TextBox controls. One of them is a password TextBox. When the form is submitted, one of the other fields might have an invalid format; on the repost showing the error in the...
6
by: Raj | last post by:
How can we do an online restore of a tablespace using the incremental backup's? we are on a partitioned database... Also, how could we use backup copy made by the load (using the copy to option...
1
by: Utahduck | last post by:
I posted this to another group but I must not be subscribed as nothing appeared. Sooo.... I've backed up a databse with the following command: BACKUP DATABASE Thomasville FILEGROUP =...
1
by: jqheller | last post by:
Folks I am losing my mind trying to work with the TemplatedWizardStep. I have created a multistep user registration form that collects plenty of user information including a password. At the end...
6
by: SenthilVel | last post by:
hi all, i am running a ASP.Net 2.0 application. in one of the pages i have a text box which is set as PASSWORD mode. when the page is submitted or transfered , am not able to get the contents of...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
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...

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.