Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Bo Kingo Damgaard 157 posts 456 karma points
    Sep 21, 2010 @ 13:03
    Bo Kingo Damgaard
    0

    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

  • Sascha Wolter 615 posts 1101 karma points
    Sep 21, 2010 @ 13:28
    Sascha Wolter
    0

    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

  • Bo Kingo Damgaard 157 posts 456 karma points
    Sep 21, 2010 @ 14:37
    Bo Kingo Damgaard
    0

    Thansk Sascha

    I used Member.GetMemberFromEmail() and it works, but the method is obsolete, so I thought it was made possible through MemberShip

    /Bo

  • Mads Krohn 211 posts 501 karma points c-trib
    Nov 26, 2010 @ 16:07
    Mads Krohn
    0

    Yeah I thought so too, guess the Member api still has it's uses :)

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies