Accessing SharePoint User Variables

string site = this.Page.Request.Url.ToString();
SPSite spsSite = new SPSite(site);
SPWeb spwWeb = spsSite.OpenWeb();string userEmail = spwWeb.CurrentUser.Email;
string userName = spwWeb.CurrentUser.Name;

etc.
Posted in SharePoint 2007.

Leave a Reply

Your email address will not be published. Required fields are marked *