Click here to Skip to main content
15,910,661 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i want to need a code for forgot password asp.net with C#
Posted
Comments
Ankur\m/ 24-Jan-14 5:21am    
You are on a wrong site then. People here participate voluntarily and help those who are stuck with specific issues.
If you would have checked the guidelines for asking question, which is just beside the box you are write question in, you would have been advised to search Google/Codeproject. There are tons of articles and tutorials for the same.

 
Share this answer
 
v2
Well the main logic behind forgot password is like below


generally you need to check the unique value to retrive the password. like username / email id. when user enter this you check that value in Database. if that value exists in the database you will provide them the origional passoword or even you can reset the password and send it to them.



C#
string Emailaddress = "abc@gmail.com";
string Query = "select * from tbl_user where username = Emailaddress";
if(Row > 0)
{
   Record found (write your logic here); 
}
else 
{ 
  No  record found (write your logic here);
}
 
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