Password TextBox VeiwState Text

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

  1. #1

    Default Password TextBox VeiwState Text

    Why Password Textbox do not Save VeiwState doing Refreshing of page and how
    do I accomplish this?


    Leon Shaw Guest

  2. Similar Questions and Discussions

    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...
    2. Selecting all text in a textbox?
      I've got a server-side textbox that receives the focus when the page loads. It has the text "Refine your Search" in the textbox. Obviously the user...
    3. 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...
    4. Problem with TextBox w/TextMode = password
      I can't seem to programatically assign a textBox server control when TextMode=Password, why is this?
    5. formatting text in textbox while typing
      Hi .. did you accomplish it? If yes .. could you please inform me what should I do? I met the same problem .. many thanks in advance Best...
  3. #2

    Default Re: Password TextBox VeiwState Text

    You can't set the password field's value when sending a response to the
    browser. This is due to security restrictions, it's read-only, and loses
    its value when the page is sent back to the client (hence ASP.NET cannot
    save it via viewstate). But most users use a password manager of their own,
    which is a client feature out of your control, that is the only (safe) way
    to do it. Another way would be to use Javascript, I believe someone said
    you can do that, but of course you'd pry want to be using SSL then, as the
    password would be in clear text. Plus that's not really the problem,
    usually it's to compare the value to the user's actual password, so you
    don't want it in the page then at all for them to 'view source' on....

    --
    Craig Deelsnyder
    Microsoft MVP - ASP/ASP.NET


    "Leon Shaw" <vnality@msn.com> wrote in message
    news:%23eM4WvkVDHA.2236@TK2MSFTNGP12.phx.gbl...
    > Why Password Textbox do not Save VeiwState doing Refreshing of page and
    how
    > do I accomplish this?
    >
    >

    Craig Deelsnyder Guest

  4. #3

    Default Re: Password TextBox VeiwState Text

    I have a dropdownlist in my form (which is all cities after selecting a
    state) that needs refreshing before submission. How do you use the password
    manager client feature.
    "Craig Deelsnyder" <cdeelsny@NOSPAMyahoo.com> wrote in message
    news:uOOus9kVDHA.2164@TK2MSFTNGP10.phx.gbl...
    > You can't set the password field's value when sending a response to the
    > browser. This is due to security restrictions, it's read-only, and loses
    > its value when the page is sent back to the client (hence ASP.NET cannot
    > save it via viewstate). But most users use a password manager of their
    own,
    > which is a client feature out of your control, that is the only (safe) way
    > to do it. Another way would be to use Javascript, I believe someone said
    > you can do that, but of course you'd pry want to be using SSL then, as the
    > password would be in clear text. Plus that's not really the problem,
    > usually it's to compare the value to the user's actual password, so you
    > don't want it in the page then at all for them to 'view source' on....
    >
    > --
    > Craig Deelsnyder
    > Microsoft MVP - ASP/ASP.NET
    >
    >
    > "Leon Shaw" <vnality@msn.com> wrote in message
    > news:%23eM4WvkVDHA.2236@TK2MSFTNGP12.phx.gbl...
    > > Why Password Textbox do not Save VeiwState doing Refreshing of page and
    > how
    > > do I accomplish this?
    > >
    > >
    >
    >

    Leon Shaw 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