Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi everyone, how do you change a username?
I am trying to create method within a helper class to change the User.Name
I have the following code, but I am receiving an error
“MembershipUserName cannot be assigned to – it is read only”
MembershipUser currentUser = Membership.GetUser(tempMemberEmail); if (currentUser != null) { currentUser.UserName = tempUserName; Membership.UpdateUser(currentUser); }
Any pointers much appreciated.
Hello Tom,
Try something like this
var member = Services.MemberService.GetByusername(customer.LoginName); member.Username = "new value"; Services.MemberService.Save(member);
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Change UserName
Hi everyone, how do you change a username?
I am trying to create method within a helper class to change the User.Name
I have the following code, but I am receiving an error
“MembershipUserName cannot be assigned to – it is read only”
Any pointers much appreciated.
Hello Tom,
Try something like this
is working on a reply...