Hi! I am workng on a new project, customizing DNN. I have made a custom control for managing users. I am having issues with UpdateUser method, if called once, it seems to work, if I reload form and I call GetUserbyID it works,but nothing changed in users table of database.
this is my code:
                UserInfo selectedUser = UserController.GetUserById(PortalId, Convert.ToInt32(Request.QueryString["UserId"]));
                selectedUser.Email = Email;
                selectedUser.Username = UserName;
                selectedUser.DisplayName = displayName;
                selectedUser.Membership.Password = Password;
                selectedUser.Membership.UpdatePassword = true;
                
                DotNetNuke.Entities.Users.UserController.UpdateUser(PortalId, selectedUser);
many thanks
Jonathan