Monthly Archives: December 2012

SharePoint 2010 – Get User Profile Info using Visual Studio 2010 C#

Add the following referrences: Microsoft.Office.Server Microsoft.Office.Server.UserProfiles using System; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using Microsoft.SharePoint; using Microsoft.Office.Server.UserProfiles; namespace CurrentUserNameTitle.VisualWebPart1 { public partial class VisualWebPart1UserControl : UserControl { protected void Page_Load(object sender, EventArgs e) { using (SPSite currentSite = new … Continue reading

Posted in SharePoint 2010, Visual Studio 2010 | Tagged | Leave a comment

Disposing SPWeb and SPSite objects

http://blogs.technet.com/b/stefan_gossner/archive/2008/12/05/disposing-spweb-and-spsite-objects.aspx

Posted in SharePoint 2010, Visual Studio 2010 | Leave a comment

Properly Populating and Retrieving SharePoint Field Data

http://sharepointcodeblock.blogspot.com.au/2008/07/properly-populating-and-retrieving.html

Posted in SharePoint 2010, Visual Studio 2010 | Leave a comment