Hans Rasmussen

info@hansrasmussen.com, +46 (0)723 207008

DataContractSerializer – Alphabetical mystique

http://msdn.microsoft.com/en-us/library/system.runtime.serialization.datacontractserializer.aspx I noticed that DataContractSerializer is using serialization in alphabetical order. If you do not follow the below rules you will end up missing data after deserialization of your XML.     [Serializable, DataContract(Namespace = "your-namespace")]     public class YourObject : DataModelDeserializable<YourObject>     {         [DataMember]         public string PostalCode { get; set; }         [DataMember] [...]

Enable AJAX Support in SharePoint,WSS, MOSS 2007

Microsoft suggests the following changes to web.config for your SharePoint installation if you want to enable AJAX functionality. http://msdn.microsoft.com/en-us/library/bb861898.aspx However it is easier to use this Feature and activate it through SharePoint central administration. Benefits are that it both creates the changes when you activate and undo the changes when you deactivate. And from a [...]

Adding references to Silverlight toolkit in Visual Studio 2008 and Blend 3

If you want to learn and develop some Silverlight components (which I do recommend you start learning how to); Download Microsoft&reg; Silverlight&trade; 3 Tools for Visual Studio 2008 http://www.microsoft.com/downloads/details.aspx?familyid=9442b0f2-7465-417a-88f3-5e7b5409e9dd&amp;displaylang=en Download Silverlight Control Toolkit from CodePlex http://www.codeplex.com/Silverlight Add references to Silverlight Control Toolkit in Visual Studio 2008 and Blend 3, so you can start using it [...]

Avoid unghosting by avoiding SharePoint Designer

YES, SharePoint Designer serves a purpose. However think for yourself a bit before you decide to make your changes to a page with SharePoint Designer. The minute you made changes to a page it is unghosted and saved in the database. If you provision these changes to new web sites you will struggle if you [...]

Lambda expessions

As I was reading through someones elses code, I stumbled upon expressions that I have not seen before. I googled and found that it was something called Lamda expressions, which is used to simplify delegates. This link here provides some information about these funny => expressions http://www.davidhayden.com/blog/dave/archive/2006/11/30/LambdaExpressionsExtensionMethodsLINQ.aspx