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

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default <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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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...
    5. Problem with TextBox w/TextMode = password
      I can't seem to programatically assign a textBox server control when TextMode=Password, why is this?
  3. #2

    Default 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

  4. #3

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

    Below worked.

    Thanks for your rely.
    >-----Original Message-----
    >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.
    >
    >
    >.
    >
    Kerri Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139