Ask a Question related to ASP.NET General, Design and Development.
-
Kerri #1
<asp:textbox TextMode=Password runa=server> ??
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.
Kerri Guest
-
TextBox-TextMode
I have been trying to implement a password text box in a datagrid using a template column. When I set the TextBox.TextMode = Password nothing is... -
Could I set TextMode = "Password" ind Editing-Mode of the DataGrid?
Hello Folks. I have a DataGrid displaying the conten of a SQL-Database. In this table exist a Field wich contains Passwords. Firstly IŽd liked to... -
runat="server"....a simple html textbox or a webform server textbox...that is the question.
I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the... -
asp:TextBox TextMode='Password'
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... -
Problem with TextBox w/TextMode = password
I can't seem to programatically assign a textBox server control when TextMode=Password, why is this? -
Ken Cox [Microsoft MVP] #2
Re: <asp:textbox TextMode=Password runa=server> ??
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" <kerri@nospam.com> wrote in message
news:025601c35f96$6674f560$a101280a@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.
Ken Cox [Microsoft MVP] Guest
-
Kerri #3
Re: <asp:textbox TextMode=Password runa=server> ??
Below worked.
Thanks for your rely.control doesn't want to>-----Original Message-----
>Here's a little workaround. Since the ASP.NET serveradd it yourself using>add/display the value in a password textbox, you have to>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" <kerri@nospam.com> wrote in message
>news:025601c35f96$6674f560$a101280a@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.
>
>
>.
>Kerri Guest



Reply With Quote

