Copied to clipboard

Flag this post as spam?

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


  • Brendan Rice 538 posts 1102 karma points
    Sep 27, 2010 @ 15:57
    Brendan Rice
    0

    Member.getProperties depricated, whats the alternative?

    I am trying to get all properties for a member and noticed that the getProperties property has been depricated, what shoudl we use instead?

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Sep 28, 2010 @ 00:06
    Aaron Powell
    0

    You should use the ASP.Net membership profile provider to define your members properties.

  • Brendan Rice 538 posts 1102 karma points
    Sep 28, 2010 @ 19:03
    Brendan Rice
    0

    Cheers Slace, have you got a quick example you could show me please?

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Sep 29, 2010 @ 00:06
    Aaron Powell
    0

    http://www.aaron-powell.com/umbraco-members-profiles

    Images don't work ATM, I'll get to fixing that one day :P

  • Brendan Rice 538 posts 1102 karma points
    Oct 04, 2010 @ 17:24
    Brendan Rice
    0

    Thanks Slace will probably get back to this next week

  • Brendan Rice 538 posts 1102 karma points
    Oct 04, 2010 @ 17:30
    Brendan Rice
    0

    Thanks Slace will probably get back to this next week, appreciate the help though

  • Yannick Smits 321 posts 718 karma points
    Oct 04, 2010 @ 18:02
    Yannick Smits
    0

    If you don't want to go through writing all that could I think you can still do:

    yourMember.GenericProperties.Where(p => p.PropertyType.Alias == "yourAlias").FirstOrDefault().Value

  • Brendan Rice 538 posts 1102 karma points
    Oct 04, 2010 @ 22:40
    Brendan Rice
    0

    Thanks Yannick,

    I.O.U 1 pint of beer

Please Sign in or register to post replies

Write your reply to:

Draft