Click here to Skip to main content
15,920,633 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to get forgot password from sql database using C#..??
Posted
Updated 26-Jul-12 20:30pm
v2
Comments
StianSandberg 27-Jul-12 2:32am    
What do you mean? Have you forgotten the sql-server password? did you create a Membership database? Your own database with passwords in clear text?

Please refer:
SqlMembershipProvider.GetPassword Method[^]

Membership.GeneratePassword Method[^] - Returns the password for the specified user name from the SQL Server membership database.
 
Share this answer
 
Comments
StianSandberg 27-Jul-12 2:38am    
The Membership.GeneratePassword Method does not returns the password for the specified user. That is impossible. Tha password is hashed with password salt using SHA-1 (by default)

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