Skip to content
/ Michaël Hompus

While working on a project with some existing code I noticed the developer did write large portions of code to get from an URL to a SPList. He probably didn’t know some of the hidden gems in SharePoint.

While working on a project with some existing code I noticed the developer did write large portions of code to get from an URL to a SPList. He probably didn’t know some of the hidden gems in SharePoint.

read more…
/ Michaël Hompus

Sometimes you have to split your code into different assemblies. For example when I created a custom Admin Page which inherits from WebAdminPageBase (Microsoft.SharePoint.ApplicationPages). The problem with Microsoft.SharePoint.ApplicationPages is that it's not deployed to the GAC. When compiling you will get the following message: “CS0122: 'foo.bar.x' is inaccessible due to its protection level” Now you have only one choice: make x public. Or maybe not?

Sometimes you have to split your code into different assemblies. For example, when I created a custom Admin Page which inherits from WebAdminPageBase (Microsoft.SharePoint.ApplicationPages).

The problem with Microsoft.SharePoint.ApplicationPages is that it is not deployed to the GAC.

read more…
/ Michaël Hompus

Lately I am working a lot with LINQ and al types like LINQ to XML, LINQ to XSD, LINQ to objects, etc. Today I had to build some functionality in SharePoint where I had to split users in 2 groups based on a profile property in their User Profile. In this post I will show you how I did this.

Lately I am working a lot with LINQ and all flavors like LINQ to XML, LINQ to XSD, LINQ to objects, etc.
Today I had to build some functionality in SharePoint where I had to split users in two groups based on a profile property in their User Profile.

In this article I will show you how I did this.

read more…
/ Michaël Hompus

I am currently at the Project Conference 2007 in Seattle and by visiting the sessions and talking to the people at Microsoft developing the solution I got a lot of answers for things I could not find on the web or in the SDK.

It has been a while having time and content to post on this blog but I am back again. 🙂

I am currently at the Project Conference 2007 in Seattle and by visiting the sessions and talking to the people at Microsoft developing the solution I got a lot of answers for things I could not find on the web or in the SDK.
The next couple of weeks I will try to post the things I found out.

read more…
/ Michaël Hompus

When you want to use the PSI interface you need to have a PSContextInfo Class. Inside a Project Server Event this will be provided so you don’t need to worry about it’s contents. But outside the Event you will need to create one from scratch.

When you want to use the PSI interface you need to have a PSContextInfo class. Inside a Project Server Event this will be provided automatically, so you don’t need to worry about its contents (except when you want to impersonate as a different user). But outside the Event you will need to create one from scratch.

read more…