When your website allows registrations, you also need to help them get their way in the login page in case they got lost. For instance, if one of your subscribers forgot the password, send them an email and tell the password. This article will explain how you can write a code to recover a password with ASP.NET using C# and VB.NET. Before you jump into the article, here are some things you need to consider first:
- Design a table for your subscribers with their email address and passwords in it.
- Set up a mail account (this will send the password).
- Create an ASPX website.
Read the tutorial here: http://www.aspdotnet-suresh.com/2012/11/code-for-forgot-password-in-aspnet.html