YAFLogo

johnk
  • johnk
  • 74.8% (Friendly)
  • YAF All-the-Time Topic Starter
11 years ago
Is there a way to get display name from username?

Example: YafContext.GetDisplayName(username)

Thank you 🙂

Sponsor
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
11 years ago

Is there a way to get display name from username?

Example: YafContext.GetDisplayName(username)

Thank you :)

Originally Posted by: johnk 

If you retrieve the user id first yes, for example

UserMembershipHelper.GetDisplayNameFromID(

UserMembershipHelper.GetUserIDFromProviderUserKey(

UserMembershipHelper.GetUser(username).ProviderUserKey));