Delen via


Adventures in Consulting

This is a place for me to share those little gems one finds when doing consulting work. Since I focus mainly on SharePoint Server, most of the posts will cover topics relating to SharePoint.

Solving the “User cannot be found” error with SPFile.Author

I ran into a bug today that was a bit unusual. We have a custom ASP.NET page that shows information...

Date: 06/16/2011

Remove List Item Menu Options with Javascript

SharePoint has a lot of JavaScript code to manage UI, and a lot of customization can be done by...

Date: 06/08/2010

Customizing ASP.NET Validators without using the CustomValidator Control

This isn’t a SharePoint tip, per se, but it is an interesting way to expand on what the default...

Date: 02/11/2010

FF at the End of a Content Type ID Kills Update Propagation

I just spent a couple of hours tracking down an issue where our content type update code wasn’t...

Date: 12/04/2009

Creating Several List Instances in a Single Feature

I’m not sure why I didn’t find this earlier, but I have always put a single list instance definition...

Date: 08/06/2009

Removing Extra Workflow Status Column in Default View

When SharePoint starts a workflow on a list for the first time, it has this annoying behavior of...

Date: 05/05/2009

Using Calculated Fields to Pad Numbers with Leading Zeros

Just a quick note on one way to put leading zeros in a SharePoint list field using a Calculated...

Date: 05/05/2009

How to work around bugs in the SPGridView control

SharePoint has a little known web control called SPGridView. This control can give you a SharePoint...

Date: 03/11/2009

Using Both Field and FieldRef in InfoPath List Loses Data

It appears that if you have both a Field and a FieldRef definition in your SharePoint list...

Date: 01/23/2009

Getting To the Root (Well Almost) - Navigating the SPWeb Hierarchy

Recently I was faced with the problem of finding an ancestor web (SPWeb object) of the current web....

Date: 11/11/2008

Empty Active Directory Groups do not Show up for SharePoint 2007 Audiences

I ran into an interesting issue at a customer site. They had dozens of newly created Active...

Date: 09/08/2008

Lookup Helper Methods

Sometimes when writing custom code for SharePoint, you want to open the list to which another list...

Date: 06/16/2008

Wrapping Text in a SharePoint WebPart Title

An interesting bit of CSS formatting behavior that I ran across recently at a customer site. They...

Date: 04/25/2008

Accessing images and other binary files in blob fields through SharePoint BDC

There are many applications that store binary data in blob or varbinary fields of a database,...

Date: 04/24/2008