Interesting things I encounter doing my job...
In part one I talked about strongly typed access to SharePoint list items and we did set a base for how to retrieve values in a more strongly typed fashion. In part two I'll extend this example and show you how to retrieve wrapped items from a SharePoint list.
It's great to see how flexible SharePoint 2007 actually is. You can create lists that can contain all sorts of data. Add columns, create data types, create content types etc. But great flexibility has a price. All to often I lay my eyes on code that's not readeable, manageable or strongly typed. Which leaves a lot of room for errors. In this post I'll drop some of my ideas on how to create and access lists in a SharePoint 2007 solution. Which will leave you with strongly typed access to your content types.
Off course that is in some of the cases and not all of them. AJAX is a very beautifull framework and has some great possibilities. Sometimes however a simple lightweighted callback is all that's needed to perform a simple task. (Read #9 over here). It is, no let me rephrase that, it WAS not the easiest task to implement such a lightweighted callback however. That's where this new CallbackController control comes around the corner. First outline the challenge I was facing.
A lot of the times when developers need some sort of enumeration they tend to create a generic list by default. Even if they realy need to iterate that list only once. Some good examples can be found in solutions offered to this code puzzle at less than dot(which is a great newcomer).
[note: This is a repost from my previous blogspace. My previous blogspace has been out of air for a while because of technical issues and a lot of developers were never able to read the articles.]