But I've noticed that I'm unable to set the Text Name of a member.
I can set the LoginName and Email no problems.
Is the "Name" field you see on the member properties page an actual settable field? or is it just a repeat of LoginName ?
//create a member System.Web.Security.Membership.CreateUser(member_emailname.Trim(), password, member_emailname.Trim()); System.Web.Security.Roles.AddUserToRole(member_emailname.Trim(), foldername); var member = System.Web.Security.Membership.GetUser(member_emailname.Trim()); Member m = Member.GetMemberFromLoginName(member_emailname.Trim());
//set a property value on the member m.LoginName = member_emailname.Trim(); m.SetProperty("Name", member_name); // Doesn't seem to work m.SetProperty("Text", member_name); // Doesn't seem to work m.Save();
Member Properties confusion
I'm creating members manually using the api.
But I've noticed that I'm unable to set the Text Name of a member.
I can set the LoginName and Email no problems.
Is the "Name" field you see on the member properties page an actual settable field? or is it just a repeat of LoginName ?
Hi Pete,
Try this:
Ha, thanks barry, could have sworn I tried that.
Pete
is working on a reply...