Copied to clipboard

Flag this post as spam?

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


  • Eric Herlitz 97 posts 129 karma points
    Oct 20, 2012 @ 22:30
    Eric Herlitz
    0

    Member Profile data with ASP.NET Membership

    Accessing membership data with the old api is easy

    var arne = Member.GetMemberFromLoginName("arne"); // deprecated
    var arneProperty = arneUmbraco.getProperty("property");

     

    It works but the GetMemberFromLoginName is deprecated and a reference is left to ASP.NET Membership.
    var arne = Membership.GetUser("arne");

    Thats fair enough, but how do I load the property? In the context Im working I can't access the HttpContext.Current.Profile since I actually load the user myself.

    var profile = HttpContext.Current.Profile; // This won't work...

    Any advice? Thanks

     

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Oct 21, 2012 @ 18:09
Please Sign in or register to post replies

Write your reply to:

Draft