Tag: SharePoint 2007

Programatically Disabling Content Approval on a Page Library

private void DisableContentApproval(SPWeb web) { SPList pagesLibrary = web.GetList("Pages"); if (pagesLibrary != null) { pagesLibrary.EnableModeration = false; pagesLibrary.Update(); } foreach (SPWeb subWeb in web.Webs) { DisableContentApproval(subWeb); } }

/ November 30, 2011

Programatically deleting all the items in a list

Often when you’re developing or testing out a new feature you need a way to quickly purge all items from a list.  If you’re only working with a handfull of list items, iterating through the list one item at a...

/ September 23, 2011

Request format is unrecognized for URL unexpectedly ending in ‘/[WebMethodName]’

Today I was trying to deploy a web service to good old SharePoint 2007 using STSDEV. While I know the proper way is to publish it to the ISAPI directory and update the approrpiate files in there to make it...

/ May 5, 2011

Installing SharePoint Designer 2010 (64 bit) with SharePoint Designer 2007 (32 bit)

A common problem many SharePoint developers and designers are facing with the release of SharePoint 2010 is that you can’t install both SharePoint Designer 2010 and 2007 on the same machine unless all your binaries are the same. On my...

/ July 7, 2010

Updating the Toolbar type for SharePoint 2007 ListViewWebPart

I’ve recently run into quite a problem updating the toolbar property on the Microsoft.SharePoint.WebPartPages.ListViewWebPart. It seems as if there should just be a property exposes of the ListViewWebPart called toolbar but there isn’t. I find a number of different articles...

/ February 20, 2009

Passing Rich Text Values into an InfoPath Form

One of the more frustrating experiences I encountered when creating InfoPath Task Forms for my SharePoint workflow was trying to take the richtext value from one form, and pass it into a richtext field on a second form. The problem...

/ March 4, 2008

The e-mail message cannot be sent. Make sure the outgoing e-mail setting for the server are configured correctly

One of the common errors many people seem to have when creating a SharePoint Workflow is with the SendEmailActivity. When your task task executes you recieve an error message: The error message is frustrating because you know you’ve setup your...

/ March 4, 2008