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.
Aucun commentaire:
Enregistrer un commentaire