Month: January 2012
Getting a SPUser object in SharePoint
Nothing magic to see here, just how to get an SPUser object from SharePoint. using (SPWeb web = new SPSite(SPContext.Current.Web.Url).RootWeb) { SPUser user = web.EnsureUser("loginName"); }
Sharing my thoughts on life, business, and technology
Nothing magic to see here, just how to get an SPUser object from SharePoint. using (SPWeb web = new SPSite(SPContext.Current.Web.Url).RootWeb) { SPUser user = web.EnsureUser("loginName"); }