MOSS Forum

 
Home » Forum » MOSS       Ask a questionRSS Feeds

Retreive logged in username in Custom MOSS 2007 webpart

  Asked By: Arielle Wolf         Date: Aug 09, 2008      Category: MOSS      Views: 297
 

How can i retrieve the username of the person logged in via a Custom MOSS 2007
Webpart?. i need to use this in a LINQ to SQL query.

I am using WSPBuilder for this.

Tagged:                

 

1 Answer Found

 
Answer #1       Answered By: Amanda Lewis          Answered On: Aug 09, 2008       

SPContext.Current.Web.CurrentUser.LoginName

 
Didn't find what you were looking for? Find more on Retreive logged in username in Custom MOSS 2007 webpart Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].