Membership.GetUser().PasswordQuestion
contains the Security Question.
Membership.GetUser().ResetPassword(securityQuestionAnswer)
will generate a new random password for the user. You can then email this to the user.
http://msdn.microsoft.com/en-us/library/d90zte4w.aspx[
^]
If a password answer is required and an incorrect password answer is supplied, a
MembershipPasswordException
is thrown by the membership provider. If you wanted to allow the user to enter a password, you could check to ensure that this exception is not thrown, then change the password.
For more have a look on following thread:
Change Password Function![
^]