Author: ChrisYard | Posted on: 3/7/2010 8:22:29 AM | Views : 366

 Hi All,
I have been trying to change a users password, I have been using this code
Imports System.Web.Security.Membership Imports System.Web.Security.MembershipUser Protected Sub resetPassword_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles resetPassword.Click Dim user As MembershipUser = Membership.GetUser(userName) Try user.ResetPassword(Passwordtxt.Text) ResetConfirm.Text = "Password Changed" PasswordChangeDatelbl.Text = user.LastPasswordChangedDate.ToString("f") Membership.UpdateUser(user) Catch ex As Exception ResetConfirm.Text = "Error: Password <b>NOT</b> Changed" End Try End Sub
I do not get an error during the try routine, but my problem comes that when the user goes it insert their new password (using login Control) it say ...

Go to the complete details ...