Copied to clipboard

Flag this post as spam?

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


  • Thorsten Hoffmann 48 posts 119 karma points
    Jul 25, 2011 @ 09:42
    Thorsten Hoffmann
    0

    Reading the properties from a MemberType of the logged in user with ASP.NET

    Hi,

    how can I read the properties from a MemberType of the logged in user with ASP.NET ?

    Thanks in advance for your help :-)

    Thorsten

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Jul 25, 2011 @ 10:30
    Richard Soeteman
    0

    HI,

    The official way is described in this blogpost of Aaron. However this requires some configuration. To be honest I always use the depricated Member classes, much easier and you can get the Text property also. Below some sample code from the top of my head.

    Member member = Member.GetCurrentMember();

    member.GetProperty("my prop").value = "some value";

    Cheers,

    Richard

  • Thorsten Hoffmann 48 posts 119 karma points
    Jul 25, 2011 @ 15:02
    Thorsten Hoffmann
    0

    Thank you Richard - that was my solution !

Please Sign in or register to post replies

Write your reply to:

Draft