Check out this site. It is very detailed and should help you on the right track. This is done programmatically.
http://www.asp.net/security/tutorials/recovering-and-changing-passwords-cs
If instead you want to do this with less code, you end up using the PasswordRecovery control, which is part of the membership system. You can find some details at http://msdn.microsoft.com/en-us/library/ms178335(v=vs.80).aspx
If you have a membership setting in normal mode, you can use the default control. Examples from the above link.
<asp:PasswordRecovery ID="PasswordRecovery1" Runat="server"> </asp:PasswordRecovery>
You may need to provide anonymous access to a form that has this control. Do this in the web.config file.
<configuration> <location path="RecoverPassword.aspx"> <system.web> <authorization> <allow users="?" /> </authorization> </system.web> </location> <system.web> <authentication mode="Forms" > <forms loginUrl="UserLogin.aspx" /> </authentication> <authorization> <deny users="?" /> </authorization> </system.web> </configuration>
If you need help in the right place, just ask.
source share