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

<asp:textbox TextMode=Password runa=server> ??

P: n/a
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 the
Database. There is a value in my datareader but yet on my
aspx my textbox is empty.

This only happens for this Text box as the TextMode is
set to Password.

Any ideas?

Thanks,
K.
Nov 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Here's a little workaround. Since the ASP.NET server control doesn't want to
add/display the value in a password textbox, you have to add it yourself using
an attribute. TextBox1 is a password textbox.

Private Sub Page_Load _
(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles MyBase.Load
TextBox1.Attributes.Add("value", "thePassword")
End Sub
<asp:textbox id="TextBox1" runat="server"
textmode="Password"></asp:textbox></p>
Does this help?

Ken
MVP [ASP.NET]

"Kerri" <ke***@nospam.com> wrote in message
news:02****************************@phx.gbl...
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 the
Database. There is a value in my datareader but yet on my
aspx my textbox is empty.

This only happens for this Text box as the TextMode is
set to Password.

Any ideas?

Thanks,
K.
Nov 17 '05 #2

P: n/a
Below worked.

Thanks for your rely.
-----Original Message-----
Here's a little workaround. Since the ASP.NET server control doesn't want toadd/display the value in a password textbox, you have to add it yourself usingan attribute. TextBox1 is a password textbox.

Private Sub Page_Load _
(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles MyBase.Load
TextBox1.Attributes.Add("value", "thePassword")
End Sub
<asp:textbox id="TextBox1" runat="server"
textmode="Password"></asp:textbox></p>
Does this help?

Ken
MVP [ASP.NET]

"Kerri" <ke***@nospam.com> wrote in message
news:02****************************@phx.gbl...
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 the
Database. There is a value in my datareader but yet on my
aspx my textbox is empty.

This only happens for this Text box as the TextMode is
set to Password.

Any ideas?

Thanks,
K.
.

Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.