Tuesday, June 21, 2011

How to get current user information - sharepoint 2010

There so many ways to get the user data in sharepoint . here below shown one of the simple and eazy method.

 SPWeb web = SPControl.GetContextWeb(Context);
 SPUser sUser = web.CurrentUser;

No comments:

Post a Comment