I have a module that I am working on and I want to allow a set of users the ability to update user information. They select a user from a gridview and the TEXT boxes are loading with the current information. The user then makes a change and clicks UPDATE. The below code runs and does give any errors, but it also does not update the user info.
------------------------------------------
Dim row As GridViewRow = gvUsers.SelectedRow
Dim user As UserInfo = DotNetNuke.Entities.Users.UserController.GetUserById(PortalId, row.Cells(1).Text)
user.Email = txtEmail.Text
user.DisplayName = txtDispName.Text
user.FirstName = txtFN.Text
user.LastName = txtLN.Text
user.Profile.FirstName = txtFN.Text
user.Profile.LastName = txtLN.Text
user.Profile.SetProfileProperty("CusProperty", CInt(ID))
user.Profile.SetProfileProperty("CusProperty2", Name)
UserController.UpdateUser(PortalSettings.Current.PortalId, user)
ProfileController.UpdateUserProfile(user)
------------------------------------------
Everything runs but none of the fields are updating with the new values. I have been working on this 1 issue for 2 days now. Any suggestions?