Author: mrtea30 | Posted on: 4/20/2010 7:17:33 PM | Views : 305

  OK, so I am building a site and the client wants an admin page, so that he can login and change passwords, delete users or create users.
I have 3 subs, one for creating, one for deleting and one for changing passwords.  The create user works fine. The delete user works fine but on the changing password is where I have the trouble. Here is the code:
 
Protected Sub saveNewPasswordButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles saveNewPasswordButton.Click If String.IsNullOrEmpty(enterNewPasswordTextbox.Text) Then MsgBox("Please enter a new password") Return End If Dim userNameEntered As String = enterUserNameTextbox.Text Dim newPassWordEntered As String = enterNewPasswordTextbox.Text Try Dim theUserThatNeedsNewPassword As MembershipUser = Membership.GetUser(userNameEntered) ...

Go to the complete details ...