johnk
  •  johnk
  • 74.2% (Friendly)
  • YAF All-the-Time Topic Starter
2013-07-21T05:39:16Z
Is there a way to get display name from username?

Example: YafContext.GetDisplayName(username)

Thank you 🙂
Sponsor
tha_watcha
2013-07-21T07:28:11Z
Originally Posted by: johnk 

Is there a way to get display name from username?

Example: YafContext.GetDisplayName(username)

Thank you :)



If you retrieve the user id first yes, for example

UserMembershipHelper.GetDisplayNameFromID(
UserMembershipHelper.GetUserIDFromProviderUserKey(
UserMembershipHelper.GetUser(username).ProviderUserKey));

UserPostedImage

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved