This forum is dedicated to helping people solve their ASP.NET problems. It's unlikely that anyone is just going to "give" you code because that won't help you learn how to accomplish what you need to do.
I'm not sure where to start helping you.
It would be best if you provided more information about your system...like what type of authentication are you using?
Whenever you have a .NET related question you should check the documentation available in the
MSDN Library.
This resource should get you pointed in the right direction....there are multiple articles on the
PasswordRecovery class there. I recommend bookmarking the MSDN Library and using it as your primary resource when developing in .NET
-Frinny