This will work, but for security reasons, I would recommend not putting the
actual password value in there (as it can then become visible to the user if
they view source). Rather, I've often put in "********" as the value to
represent that something has been entered. The next time the user posts, if
that value matches, then I know they left it alone and the code responds
accordingly. Otherwise, they've made a change.
Ben Lucas
Lead Developer
Solien Technology, Inc.
"bruce barker" <no***********@safeco.com> wrote in message
news:OO*************@TK2MSFTNGP10.phx.gbl...
asp.net clears password fields by default. to set the values in code
behind use the value attribute:
txtuserpassword1.Attributes.Add("value",myPassedVa lue);
-- bruce (sqlwork.com)
"Chris" <Ch***@discussions.microsoft.com> wrote in message
news:53**********************************@microsof t.com... why is it that password fields:
<asp:TextBox Id="txtuserpassword1" TextMode="password" class="textbox"
maxlength="20" Columns="15" Runat="Server" /><br>
clear everytime validation kicks in or on page refreshes? Can this be
stopped? Help! Also, I can't auto-populate the password field uising a database value.
Help. Thanx.