Copied to clipboard

Flag this post as spam?

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


  • Deci 19 posts 48 karma points
    Apr 04, 2013 @ 17:06
    Deci
    0

    Member properties.

    Greetings. I am having an issue with the Membership object.

    All I want to know is what's the property for the Users name once you have the member object?

    UserName, Alias, Name, User in various caps don't work..Can you tell I'm guessing?

    I would look it up, but this page: http://our.umbraco.org/documentation/reference/management/members/  just errors with 'too many redirects.'

    Deci

    [edit] forgot to say, I am doing this in Razor (god help me), in the backend inside a template hence no intellisense.

     

     

  • Charles Afford 1163 posts 1709 karma points
    Apr 04, 2013 @ 23:29
    Charles Afford
    0

    Hi take a look at the post here http://www.charlesafford.com/

    I have a post about members (still working on it be gentle :) )

    What version of Umbraco are you using.  This has been all changed to the ASP provider from the Umbraco provider

    What you need is... Membership.GetUser().UserName.  This is the asp provider way :)

    Let me know and i will try and help some more :).  Charlie

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Apr 05, 2013 @ 08:44
    Richard Soeteman
    100

    Hi,

    I assume you need the name that get's displayed in Umbraco? It's member.Text

    Hope this helps,

    Richard

  • Deci 19 posts 48 karma points
    Apr 08, 2013 @ 14:24
    Deci
    0

    That was it, thanks Richard.

    Also, thanks Charles for your help.

     

Please Sign in or register to post replies

Write your reply to:

Draft