Archive for September, 2010

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 [...]

Get Image from URL, FileExtension and Get Bytes From Url useful Functions csharp

To accompany all of the sharepoint migration and development code here is a few useful functions for getting images/bytes from urls directly in csharp and breaking strings down into file extensions. Might save you a little time if you need to drag content from an existing intranet into your new sharepoint deployment. Nothing complex here. [...]

SPWeb Methods – Using SPWeb

SPWeb Methods – There are a whole bunch of useful SPWeb Methods, lots have fantastic names you couldn’t really guess off the top of your head – here is the full list of SPWeb Methods There is a wealth of things accessible from within the SPWeb object – its really the most used thing if [...]