Browse by Tags
All Tags »
C# (
RSS)
Sometimes I perform a code review and at first glance everything looks fine, but - while I’m digging my way in - I slowly start to encounter some ‘hidden features’. This post is all about the dangers of lazy loading and not following some of the design guidelines....
Web part properties not always consist of strings and integers. Sometimes your properties are a little bit more complicated. And sometimes your property is a list of complicated properties. Such as a list of Virtual Earth pushpins for your Virtual Earth Maps control. This post is the starting post for my series "How to create a Virtual Earth Maps Web Part for SharePoint" in which I'll demonstrate how you can make modifying complex properties simple....
As with many things the modification of your web.config on a SharePoint webfarm is a little bit more daunting than in a standard ASP.Net web application. There are some interesting cases where you would like to modify your web.config simply by a feature. In this post I'll make your life a little easier by showing you the code for an abstract base class that can be used for your feature recievers and two cases where I used this technique....
In two previous posts I demonstrated how you could use wrappers for list items in order to enable strongly typed access to list item properties. Very nice but I can imagine you guys and girls would like to see a real life example of it's usage. And I guess it would be very nice if I could come up with something that we can actually use in our project today. So I decided to create a slideshow web part. With the help of: jQuery, the jQuery Cycle plugin and a PictureWrapper I created a very basic slideshow. It's not completely finished, but I'll leave the addition of some extra options as practice for you guys. If you're not interested in my writing you can download the complete source and the Windows SharePoint Solution Package at the end of this article. It has been created with the help of WSP Builder. The must have tool for all SharePoint developers....
In part two I'll extend the examples from part one and show you how to retrieve strongly typed list items from a SharePoint list. This post contains samples and source code for creating a SharePoint 2007 data layer....
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....
The Yield Statement 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...
ToCSVString Extension Method A friend of mine wanted to create the posibility to export some selected sharepoint list items to a spreadsheet program. So he started thinking and decided to create a new list. The clients selected the items by clicking some...
[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.] Extension Methods If you don't know extension methods...
More Posts