C# for Sharepoint 2010

UserProfileManager in Sharepoint Timer job

15/12/2015 04:38
Get service context from site, not from httpContext as usual     SPServiceContext...

Parse query string

17/06/2015 15:02
using System.Web;  string queryString =...

Get domain account from Person field

16/07/2014 11:49
  //If you have Sharepoint field of Person type (SPUser, people picker), you cannot read login...

Create file on sharepoint

02/07/2014 15:56
//Create file from scratch - from memory stream using (StreamWriter writer = new...

Select distinct items from List

30/04/2014 14:53
MyObject has Id propertyList<MyObject> financials = financials.GroupBy(m => m.Id).Select(g...

Select properties from list items

02/04/2014 11:58
///get id and task display name from SPListItemCollection public static Dictionary<int,...

Add node to QuickLaunch

24/03/2014 11:35
   static void Main(string[] args)       ...

Create Content Editor web part programmaticaly

12/03/2014 15:37
ContentEditorWebPart webpart = new...

Create Content Database programmatically

28/01/2014 15:00
     string newDbName = "SP_Content_testSite1";        ...

Get days difference between dates in C#

09/10/2013 14:58
  TimeSpan daysLate = DateTime.Today -...
1 | 2 >>