Forums

Skip Navigation LinksHome / Developer Network / Forums / Sitefinity Older Versions (2.x): Deployment > Get logged in user name?

Get logged in user name?

  • Jason avatar

    Posted on Dec 17, 2006 (permalink)

    Guys, do you know how to get the user information for the logged in user?
    I am writing some controls where i need this information, and cannot find a way to get it easily.

    Thanks so much

    Jay    

    Reply

  • Rebecca Rebecca admin's avatar

    Posted on Dec 18, 2006 (permalink)

    Hi Jason,

    Please find the answer to this inquiry in the support thread you opened with the same subject. 
    We are closing this forum thread.

    Sincerely yours,
    Rebecca
    the telerik team

    Reply

  • Posted on Jul 30, 2010 (permalink)

    Others search this stuff...can you either provide a link to what you're referring to or delete it? It's a waste to get this result.

    Reply

  • Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on Jul 30, 2010 (permalink)

    Hi Tamish,

    You can get Membership data for the currently logged in user as shown below

    MembershipUser user = Membership.GetUser(UserManager.GetCurrentUserName());

    UserManager.GetCurrentUserName() returns the name of the current user, so you could pass it to ProfileBase in case you need to get profile data.

    All the best,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

    Reply

Skip Navigation LinksHome / Developer Network / Forums / Sitefinity Older Versions (2.x): Deployment > Get logged in user name?