Microsoft Sharepoint 2010 | Sharepoint Code

Make new Sharepoint 2010 Publishing page in Csharp – needs keywords

Want to make a new publishing page in sharepoint 2010? Want do do it in code? use csharp! yes use it! here we will explain the complete steps of going about setting up a new PublishingPage object. First we will grab the correct page layout object to insert the new page with, then we will [...]

Sharepoint Error Codes – MOSS 2010 Error Code

The majority of times we talk about error codes in sharepoint, especially in 2010 we don’t need more than the reference off of the error page, but sometimes it can be easy to forget where the logs are and frustrating skipping through them to find out where the REAL error was, as quite often these [...]

Make new sharepoint 2010 Web in CSharp – Make SPWeb in C#

Want to programattically make a new sharepoint web (SPWeb)? well here is how you go about it – the basic process (as with most things you do in sharepoint in code) is to get the parent site which will hold the new SPWeb (you could call it the to be parent) and then add to [...]

Use Csharp to add an image to a sharepoint default image library (c# sp2010)

Yesterday we looked at adding a file to a document library, which is essentially the same process as we will use here, but this is more specificly a function which will insert/upload/add an image into a default images sharepoint library (one is created for every publishing web you make, designed to house images used in [...]

Upload/Insert a file into Sharepoint 2010 document library in code (c#)

Simply put a bunch of times in migration, or for whatever app you are writing, perhaps a webpart that uploads files to a specific sharepoint document library you probably will want to do this. You can upload files (insert them really) into a sharepoint 2010 document library directly from c# using the following code. We [...]

Top 5 Sharepoint 2010 Woes

1. Accidentally deleting site collection or spweb while in ‘manage structure’ screen – there is a warning confirmation alert, but there is no undo! 2. Version control on setup – in a pre deployment environment excessive ‘publish’ and versioning can impair progress no end 3. Intranet to sharepoint Migration routines that wreck shop – testing [...]