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

Is there a way (without SP Designer) that I can display the name of the user that is currently logged in on my team's homepage?

share|improve this question
    
What sharepoint version are you referring? Do you have the freedom to deploy any custom components? –  Vivek Nov 16 '10 at 7:25
    
Hi Vivek, I'm using MOSS 2007 Basic. If you are talking about Server Installed components then no; if you mean custom webparts through CEWPs/uploading .dwps etc then yes. –  Rob Nov 16 '10 at 8:40
add comment

1 Answer 1

up vote 3 down vote accepted

You can use the current user object to get the name:

SPContext.Current.Web.CurrentUser.Name

share|improve this answer
add comment

Your Answer

 
discard

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