473,499 Members | 1,568 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Password TextBox loses value

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

Nov 22 '06 #1
8 2921
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
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
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
"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
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
"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
"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
656
by: tom | last post by:
Hello, I have an asp.net web application where I want people to register themselves. This takes them through a few pages with prev/next functionality. In one of the pages they provide a...
2
13676
by: anonieko | last post by:
This applies to javascript dynamic textbox onkey > > > Newsgroups: comp.lang.javascript From: Lasse Reichstein Nielsen <l...@hotpop.com> - Find messages by this author Date: Fri, 15 Jul 2005...
2
3896
by: Leon Shaw | last post by:
Why Password Textbox do not Save VeiwState doing Refreshing of page and how do I accomplish this?
2
5246
by: Kerri | last post by:
Hi, I have an asp textbox that allows users to enter their password. I have another page that allows a user to edit their user account. On this page I set the text to be the password in...
6
2276
by: Andre Ranieri | last post by:
I'm trying to create a login page for customers to log into our corporate website, our presidents naturally wants the user and password fields to populate from a cookie so the customer doesn't have...
10
11727
by: dana lees | last post by:
Hello, I am developing a C# asp.net application. I have a webform which contains 2 dropdowns and a textbox with type="password". On "SelectedIndexChanged" event of the first dropdown, there is...
1
3191
by: rn5a | last post by:
I want to create a custom control that encapsulates a Button & a TextBox. When the Button is clicked, the user is asked a question using JavaScript confirm (which shows 2 buttons - 'OK' &...
1
4203
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
2396
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
7009
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
7178
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6899
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
7390
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...
1
4919
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4602
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3103
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3094
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.