Try Now
More in this section

Forums / Deployment / Get logged in user name?

Get logged in user name?

4 posts, 0 answered
  1. Jason
    Jason avatar
    18 posts
    23 Jun 2006
    18 Dec 2006
    Link to this post
    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

  2. Rebecca
    Rebecca avatar
    536 posts
    24 Sep 2012
    18 Dec 2006
    Link to this post
    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,
    the telerik team
  3. Tamish
    Tamish avatar
    2 posts
    02 Oct 2008
    30 Jul 2010
    Link to this post
    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.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    25 Oct 2016
    30 Jul 2010
    Link to this post
    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
4 posts, 0 answered