Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Get full name by log in name in sharepoint

$
0
0

Is there an easy way to retrieve fullname e.g "John Smith" from its login name "j.smith" in sharepoint? Ive been ages looking for that code.

I have this code:

string strName =SPUtility.GetAccountName("j.smith");

Where strName should be my fullname and "j.smith" is my login name. I dont think its correct..any advice from sharepoint masters out there?


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>