GetItems List Query Returns no Items

SharePoint’s SPList class contains the GetItems method which is used to query the contents of a SharePoint list. Rather than iterating through all of the list’s items, the GetItems method allows you to specify a collaborative application markup language (CAML) query...

Expanding your blog readership

In a previous post I was happy the my readership increased to 3000 readers per month, and I promised to share how some of my strategy reaching my next goal: 10,000 readers per month. Here’s some of advise I got from fellow MVPs, some Internet research, and my wife,...

Run STSADM commands remotely

Are you tired of having to bring up a Remote Desktop to your SharePoint server just to run an stsadm command? I sure was. Here’s a very simple way to remotely execute stsadm commands against any SharePoint server to which you have a LAN connection. Best of all, unlike...

RunAs in C#

I do a lot of server programming. I frequently need to be able to run some code as a different user than the currently logged-in user. Unfortunately, the .Net Framework does not make this particularly easy. Sure, there is the WindowsIdentity class and its Impersonate...