Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have figured out how to display users login name ...

<asp:LoginName runat="server" id="LoginName"></asp:LoginName>

But how do I display the users full name?

Thanks ... Mike

[EDIT]

I think I may have found out what I need using jQuery SPServices.

SPServices get user details

I will report back :)

share|improve this question
add comment

1 Answer

Yep. SPServices is the best way to do that (but sounds like you figured it out already!):

var userFirstName= $().SPServices.SPGetCurrentUser({fieldName: "FirstName"});
var userFirstName= $().SPServices.SPGetCurrentUser({fieldName: "LastName"});
var userFullName = userFirstName + " " + userLastName;
share|improve this answer
1  
Actually ... I did it using SharePoint Portal Web Controls. I registered the tags and used this tag <SPSWC:ProfilePropertyValue PropertyName="FirstName" ApplyFormatting="false" runat="server"/> Would that be wrong? –  mdumka Nov 26 '12 at 4:22
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.