samedi 31 janvier 2015

How to Get User's Friendly Display Name on SharePoint 2010



I have been searching around the web trying to find some help on this. We are working on a aspx page hosted on a Sharepoint2010 site. We have been able to successfully get the current logged in user's username in the format of "DomainName\UserName" - by using the below very basic code:



<asp:LoginName id="LoginName01" runat="server" FormatString={0}/>


Need help in getting the friendly display name of the user - "FirstName LastName" - of the current logged in user.








0 commentaires:

Enregistrer un commentaire