Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

How do I get the logged on user's display name into Home Page or any

  Asked By: Salina    Date: Jan 19    Category: Sharepoint    Views: 2098

How do I get the logged on user's display name into Home Page or any web part?

Does anyone know how can i do this?

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Jan Chen     Answered On: Jan 19

I guess
SPContext.current.web.currentuser will give the SPUser object. you can get the
name from this object.

 




Tagged: