473,503 Members | 13,381 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Textmode = Password

I have a password mode field in a user record, when I go to fill the field
from an existing record I see nothing in the field, when I take the
textmode="password" off then I see the password

password.text = row("password")
Nov 18 '05 #1
3 4095
It is a security caution. In password mode TextBox is read-only (from
programmatic standpoint e.g it can be filled only by the user by typing)

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
http://blogs.aspadvice.com/joteke

"William Gower" <w_*****@hotmail.com> wrote in message
news:OR**************@TK2MSFTNGP09.phx.gbl...
I have a password mode field in a user record, when I go to fill the field
from an existing record I see nothing in the field, when I take the
textmode="password" off then I see the password

password.text = row("password")

Nov 18 '05 #2
You can get around the "read-only" limitation (which will cause the mask
characters to display) by:

password.Attributes.Add("value",row("password"))
"Teemu Keiski" <jo****@aspalliance.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
It is a security caution. In password mode TextBox is read-only (from
programmatic standpoint e.g it can be filled only by the user by typing)

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
http://blogs.aspadvice.com/joteke

"William Gower" <w_*****@hotmail.com> wrote in message
news:OR**************@TK2MSFTNGP09.phx.gbl...
I have a password mode field in a user record, when I go to fill the field
from an existing record I see nothing in the field, when I take the
textmode="password" off then I see the password

password.text = row("password")

Nov 18 '05 #3
Sending the password in plain text to the browser is a bad idea from a
security standpoint so the default security settings discourage it.
(Anybody can do a view source for the page
and see the password)

However there is a workaround if you're determined. You can set the
password text via client side script.
Here's the simplest example I've seen:

MyPWTextBox.Attributes.Add("value", strPassword)

This server side code outputs the needed client side code

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

"William Gower" <w_*****@hotmail.com> wrote in message
news:OR**************@TK2MSFTNGP09.phx.gbl...
I have a password mode field in a user record, when I go to fill the field
from an existing record I see nothing in the field, when I take the
textmode="password" off then I see the password

password.text = row("password")

Nov 18 '05 #4

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
4631
by: ChInKPoInt [No MCSD] | last post by:
1. Is there anyway to preload password? Text attribute doesn't work <asp:TextBox ID="Pass" TextMode="Password" Runat="server" Text="Hello"> 2. In the same form, if other elements such as...
4
2302
by: MA | last post by:
Hi all! I have a problem here. I have a web page for user administration. On this page I have a textbox for password. This textbox are in TextMode password. But when I get data, via a data...
1
3244
by: Alex | last post by:
I can't seem to programatically assign a textBox server control when TextMode=Password, why is this?
0
1659
by: Kumar | last post by:
Hello All, I am trying the following in one of the DataGrid column. The intent is to enable users to edit their password without actually displaying it. <asp:TextBox id='Password'...
2
5250
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...
4
5761
by: Jonathan Dienst | last post by:
I have a simple data access and administration page for user details on my site, including a login password -- but I cannot get the textbox to work properly if the TextMode is set to "Password". ...
1
1870
by: Ather Ali Shaikh | last post by:
Hello I have a control TextBox with TextMode = Password fine. I am suppose to save LoginID and Password in a cookie fine. But when I read the cookie and display the key/values of the LoginID and...
4
4882
by: John Kotuby | last post by:
Hi all, I have a simple user-form which accepts contact and profile information for the user to edit and save. All the textboxes are working fine and displaying the expected data, both when the...
0
7098
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
7298
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,...
0
7471
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
5026
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
3187
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
3176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1526
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
406
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.