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

Password TextBox loses value

P: n/a
I am doing client side validation in my page. The password field does
not retain its value.
Pls help

Nov 22 '06 #1
Share this Question
Share on Google+
8 Replies


P: n/a
It would be great if you post the code...


Bhagya wrote:
I am doing client side validation in my page. The password field does
not retain its value.
Pls help
Nov 22 '06 #2

P: n/a
I am doing client side validation in my page. The password field does
not retain its value.
Pls help
By design (for security reasons) the value of the password textbox can
not be set from the server-side.
This includes postback situations.

Hans Kesting
Nov 22 '06 #3

P: n/a
Nope, it's a client issue, not server :)

"Hans Kesting" <ne***********@spamgourmet.comschreef in bericht
news:mn***********************@spamgourmet.com...
>I am doing client side validation in my page. The password field does
not retain its value.
Pls help

By design (for security reasons) the value of the password textbox can not
be set from the server-side.
This includes postback situations.

Hans Kesting


Nov 22 '06 #4

P: n/a
"Hans Kesting" <ne***********@spamgourmet.comwrote in message
news:mn***********************@spamgourmet.com...
By design (for security reasons) the value of the password textbox can not
be set from the server-side.
This includes postback situations.
??? Of course it can!

txtPassword.Attributes.Add("value", txtPassword.Text);
Nov 22 '06 #5

P: n/a
This is not correct. I'm doing that setting the password field on the server
side for the Debug Mode to avoid entering these strings each time when I
start the app to debug it.

But the problem is when it requires a postback it loses the value, that's
different, and I switch this text box mode to the regular mode before I do
that so that the client never notices it.

Just D.

"Hans Kesting" <ne***********@spamgourmet.comwrote in message
news:mn***********************@spamgourmet.com...
>I am doing client side validation in my page. The password field does
not retain its value.
Pls help

By design (for security reasons) the value of the password textbox can not
be set from the server-side.
This includes postback situations.

Hans Kesting


Nov 22 '06 #6

P: n/a
"Just D." <no@spam.pleasewrote in message
news:u5**************@TK2MSFTNGP03.phx.gbl...
But the problem is when it requires a postback it loses the value, that's
different, and I switch this text box mode to the regular mode before I do
that so that the client never notices it.

Just D.

"Hans Kesting" <ne***********@spamgourmet.comwrote in message
news:mn***********************@spamgourmet.com...
>>I am doing client side validation in my page. The password field does
not retain its value.
Pls help

By design (for security reasons) the value of the password textbox can
not be set from the server-side.
This includes postback situations.

Hans Kesting



Nov 22 '06 #7

P: n/a
"Just D." <no@spam.pleasewrote in message
news:u5**************@TK2MSFTNGP03.phx.gbl...
But the problem is when it requires a postback it loses the value, that's
different, and I switch this text box mode to the regular mode before I do
that so that the client never notices it.
No need to to that...

txtPassword.Attributes.Add("value", txtPassword.Text);
Nov 22 '06 #8

P: n/a
Seeing the responses over here.. i was really convinced this was a browser
issue.
In MSIE it seems the file upload control can not be preset.
Afaik the textbox with password setting either.
Seems i was wrong (not tested though)

:)
"Edwin Knoppert" <ne**@hellobasic.comschreef in bericht
news:45***********************@text.nova.planet.nl ...
Nope, it's a client issue, not server :)

"Hans Kesting" <ne***********@spamgourmet.comschreef in bericht
news:mn***********************@spamgourmet.com...
>>I am doing client side validation in my page. The password field does
not retain its value.
Pls help

By design (for security reasons) the value of the password textbox can
not be set from the server-side.
This includes postback situations.

Hans Kesting



Nov 23 '06 #9

This discussion thread is closed

Replies have been disabled for this discussion.