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
I can't seem to get the members umbraco "Name" field through .net membership methods. I can only get username (logon).
I found this thread http://our.umbraco.org/forum/developers/api-questions/4610-Save-member-name but I can't cast the MemberShipUser as Dirk suggests.
Does anyone know how to this?
Regards Bo
Don't know if you can cast a MemberShipUser object directly to a (Umbraco) Member object, yet I would be surprised if you can.
You can simply get the Member object by using
var mem = new Member(id);
or via one of the other methods, e.g. using the email address or the login name.
Hope that helps,
Sascha
Thansk Sascha
I used Member.GetMemberFromEmail() and it works, but the method is obsolete, so I thought it was made possible through MemberShip
/Bo
Yeah I thought so too, guess the Member api still has it's uses :)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Get member name through .net membership
Hi
I can't seem to get the members umbraco "Name" field through .net membership methods. I can only get username (logon).
I found this thread http://our.umbraco.org/forum/developers/api-questions/4610-Save-member-name but I can't cast the MemberShipUser as Dirk suggests.
Does anyone know how to this?
Regards Bo
Don't know if you can cast a MemberShipUser object directly to a (Umbraco) Member object, yet I would be surprised if you can.
You can simply get the Member object by using
or via one of the other methods, e.g. using the email address or the login name.
Hope that helps,
Sascha
Thansk Sascha
I used Member.GetMemberFromEmail() and it works, but the method is obsolete, so I thought it was made possible through MemberShip
/Bo
Yeah I thought so too, guess the Member api still has it's uses :)
is working on a reply...