Author: darinsee | Posted on: 4/6/2009 2:12:36 PM | Views : 429

 Hello,
 I have a TextBox that allows users to enter a password - so I have the TextMode set to Password like so:
<asp:TextBox ID="TxbPassword" TextMode="Password" runat="server"></asp:TextBox>  What I need to be able to do, however, is get the password value programmatically:
string password = TxbPassword.Text;  However, this does not work, because the TextMode is set to Password - is there anyway that I can make a TextBox behave like a
TextMode="Password" TextBox, while retaining the ability to get the value programmatically? I am using .NET 2.0 for this project, so I can not use TextBox.PasswordChar - though that seems like an ideal solution.Any ideas?Thanks!
...

Go to the complete details ...