Click here to Skip to main content
15,891,951 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi experts,

my form having a asp:textbox with textmode = password, all working fine but i need to retrieve both username and password as well. however it retrieve password from database but not showing anything in the textbox.

is there any way to do this
thanks a lot..
Posted
Comments
_Tushar Patil 4-Nov-11 2:17am    
If you want to see password then why u have made as Password Type...?
Vikas_Shukla_89 4-Nov-11 2:18am    
see, when user enter password, that must not visible to others.
i don't want to see password, i just want to retrieve it so i don't have to type it again and again
Prerak Patel 4-Nov-11 2:33am    
Share relevant code.
Vikas_Shukla_89 4-Nov-11 2:39am    
here is my code

<asp:TextBox ID="TxtPassword" runat="server" BorderColor="#6699FF"

BorderStyle="Solid" BorderWidth="1px" CssClass="textbox" Width="140px" TextMode="Password">

this is my .cs code
clsUserDac.Create(objUser);

TxtUserName.Text = objUser.UNAME; //value which comes from database

TxtPassword.Value= objUser.UPASS;

 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900