hi friends
my problem is . i have a login form where i have a option for forgot password. i am using asp.net MemberShip default table . where in aspnet_Membership table password is hashed. now i want to retraived the password and use it in forgot password option.
i use a email body where i want to convert the password and send it to my user.
Email body code is
DataTable dtbody = new DataTable(GlobalCon.ConnectionString);
string str = string.Empty;
str = "SELECT * FROM aspnet_Membership am WHERE am.Email='" + txt_email.Text + "'";
dtbody = GlobalCon.getRows(str);
string email = txt_email.Text.ToString();
MembershipUser usr = Membership.GetUser("dtbody.Rows[0]['Email'].ToString().Trim()");
string resetPwd = usr.GetPassword();
...
Go to the complete details ...