Categories

Working with Enumerators in Business Data Catalog (Moss 2007)

I was just working through some BDC examples and thought that the way DbEntityInstanceEnumerator is being used is a shame. So, instead of each time using the MoveNext method and a cast I wrote these little extension methods:

public static void Foreach(this DbEntityInstanceEnumerator instances, Action<DbEntityInstance> action) { [...]

Site Column Web Part

Did you ever wonder if you could plug a SharePoint Field Control into a Web Part?

I did today – and yes, you can. The code is trivial. Instantiate the Field Control and add it to the controls collection. Ok, maybe normal people do not do that. But I wanted to add some flexibility to [...]

Storing configuration in SharePoint

I often have to store some configuration data in SharePoint. Typically I have a custom application page on the Central Administration site to configure a feature or an application. Typically this is a connection string and some other data.

To store the configuration I do not like to use the Farm or WebApplication property bag. SharePoint [...]

SharePoint and large lists

Probably you already know or maybe you have a notion of that working with large lists in SharePoint cannot be fast. BUT – it depends.

I have read the Microsoft whitepaper on working with large lists some time ago. But I was not fully aware of what this means. Ok, using GetItemById is slow – but [...]

Wspbuilder cannot resolve assembly

When building a WSP solution with wspbuilder to deploy the Telerik RadEditor I got the error message below.

Unable to resolve assembly ‘System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35′, please use DLLReferencePath to point to the directory where this DLL is located.

The package is built correctly but the message is somewhat messy. I had a similar error [...]

Do not trust your ASP.NET code

A lot of news group entries describe how to solve CAS policy issues: Set the trust level to full in web.config.

This seems like a quick solution but is rather a quick and dirty work-around.

But what can you do if you want to be a little bit more ambitious?

I use the following methods – depending on [...]

Using the RadEditor as InputFormTextBox

If you want to replace the SharePoint InputFormTextBox on a custom page or control with the Telerik RadEditor you will the MOSS version of it. The following lines of code will do (this is for version 5.2.2 build 826.20):

 

<%@ Register TagPrefix="telerik" Namespace="Telerik.SharePoint"     Assembly="RadEditorSharePoint, Version=5.2.2.0, Culture=neutral,     PublicKeyToken=1f131a624888eeed" %> [...]

HTML and URL encoding for SharePoints

MSDN is not really specific when it comes to encoding matters. I wonder why. Working on a SharePoint web portal that must deliver it contents according to the XHTML standard I took a closer look at the encoding methods in the framework.

I got the best result by with the following stategy:

Use HttpUtility.UrlEncode to encode the [...]

Integrate R.A.D editor into MOSS 2007

Recently I got the task to integrate Telerik’s Rad Editor (5.2.2) into an existing WCM SharePoint 2007 project. The reason was to gain browser compatiblilty – especially Firefox support.

I was excited because I am not much of a frontend guy. So looking forward to get a closer look at what is going there was motivating.

The [...]

PublishingPage create error

Recently I had a strange problem creating a publishing page through the object model in SharePoint 2007. Trying to create the page with a user that seemed to have all necessary rights failed with this exception:

Object reference not set to an instance of an object. at Microsoft.SharePoint.Publishing.PublishingPage.SetContentType(SPContentType listContentType) at Microsoft.SharePoint.Publishing.PublishingPageCollection. <>c__DisplayClass5.<Add>b__0() at [...]