.NET life

HUGON Jérôme
Microsoft Certified Technology Specialist Microsoft Certified Application Developer Microsoft Certified Professional

SharePoint 2007

SharePoint 2007

Last update : 3/13/2010

Quick explanations on the web.config

Many sections of web.config for SharePoint 2007 differ from those of a web application. Here's a quick overview of some of them.

Move content and configuration databases

Several common reasons for needing to move a database from one SQL server to another are:
-Scalability (spreading the load of your SQL server across multiple SQL servers)
-Disaster Recovery (your SQL server had a catastrophic disaster and you need to recover from that event)
-Database Reorganization (you simply need to change the server that hosts your content database or rename the database)

SPSecurity.RunWithElevatedPrivileges

The SDK says this: "The Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges method enables you to supply a delegate that runs a subset of code in the context of an account with higher privileges than the current user."

Reusable content & HTML snippets

If you want to allow your client insert more than just formatted text and images in his Publishing HTML field control, you should think about the out-of-the-box Reusable Content functionality provided by MOSS 2007.

Save site as a template missing

If you are trying to save a site as a template in SharePoint 2007 you will find that the link Save site as template is only available under Look and Feel at the top level of the site collection. Doesn't really help if you want to save a sub site as a template.

Problem when deleting content type

When you want to delete a content type, it's either a 10 second or a multi hour job. Either the content type is completely orphaned and easy to delete, or it's used in many places, most of which will be difficult to find and the treasure hunt is on!
This post cover how to delete a content type and how to troubleshoot the most common error: The content type is in use.

Change MasterPageFile for a specific PageLayout

If you want to change the MasterPage for one PageLayout, you need to do something special. Normally each site has a MasterPage and an alternate MasterPage assigned for the site, and SharePoint sets the MasterPageFile for you behind the scenes.

Issue with custom URL, IE8 and Windows Server 2003

If you make use of the HOSTS file to allow the use of FQDN to remove the need for high port numbers on SharePoint 2007 installed on Windows Server 2003 with IE8 (that's the winner list...), you have an error HTTP 401.1 – Unauthorized: Logon Failed when you try to connect on the site.

SharePoint versions

This article describes how to identify your current Microsoft SharePoint version number and the corresponding product or service pack level.

Enabling anonymous access in SharePoint 2007

In this article I’ll show you how to enable anonymous access on your site.

Change ContentType of SPListItem by code

The user interface of SharePoint allows you to select or change the content type of a list item. How to do it by code?

Read and add items to SharePoint list

I'm going to show you how you can use the SharePoint object model to read and add items in a list using C#.

Display your Twitter status in SharePoint

Twitter offers customers the status in XML format, SharePoint is the perfect consumer for this type of data and in contrast to existing solutions, we will not have advertise on our Widget.

Display data from multiple sources in a single Data View

Display information from multiple data sources is an almost obligatory to make a SharePoint application. In this article we'll create a view with this technique using SharePoint Designer 2007.

Remove or change the title column from a SharePoint list

The Title column comes default on any list you are going to create in SharePoint, it's also by default a Single line of text type. This introduces problems if you don't want a Title column or if you want that Title column to be another column type.

Customizing the filter query in a list view

Create complex filters using AND and OR conjunctions.

Create SPList grouped by a field in SPView

Doing a GroupBy on SPList so that it can be viewed in TreeView UI with collapsible groups.

Forcing checkout of item before edit in C#

Code sample for forcing the checkout on a list.

Enabling content approval on a list in C#

Code sample for enabling content approval on a list.

Add a content type on a list in C#

Code sample for adding a content type on a list.

Enabling content management on a list in C#

Code sample for enabling content management on a list.

Enabling versioning on a list in C#

Code sample for enabling versioning on a list.