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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top