TextMode="Password" Question

  • Thread starter Thread starter ChInKPoInt [No MCSD]
  • Start date Start date
C

ChInKPoInt [No MCSD]

1. Is there anyway to preload password? Text attribute doesn't work
<asp:TextBox ID="Pass" TextMode="Password" Runat="server" Text="Hello">

2. In the same form, if other elements such as <asp:dropdownlist...> is
using AutoPostBack="true". When the form posts back to itself, the password
textbox is cleared??? is there anyway to maintain the password during
autopostback?

Thanks..
 
1. Try: Pass.Attributes.Add ("Value", "<prefilled password>");
2. Try (on postback): Pass.Attributes.Add ("Value", Pass.Text);


1. Is there anyway to preload password? Text attribute doesn't work
<asp:TextBox ID="Pass" TextMode="Password" Runat="server" Text="Hello">

2. In the same form, if other elements such as <asp:dropdownlist...> is
using AutoPostBack="true". When the form posts back to itself, the password
textbox is cleared??? is there anyway to maintain the password during
autopostback?

Thanks..
 
Back
Top