Author Archives: rburgundy

Custom date validation with ASP.NET MVC / Web-Api server and client-side dutch date example

I live in the Netherlands and we have a different way of writing the date then like in the US. For example: 31 January 2012 is like this: 31-01-2012. To accomplish this to be validated with MVC and Web-Api add … Continue reading

Posted in ASP.NET, JavaScript, MVC, Web-Api | Leave a comment

HTML checkbox as boolean values with jQuery (using ASP.NET MVC Web-Api)

I like to have my HTML form data to be send in JSON. When reading values from checkboxes with the default jQuery serializeArray you get the value “on” for checkboxes that are checked. In my viewmodel I have boolean properties … Continue reading

Posted in ASP.NET, HTML, JavaScript, jQuery, JSON, MVC, Web-Api | Tagged , , , , , , , , | 6 Comments

SharePoint 2010 – Create Page Layout based on a custom Content Type in Visual Studio 2010

I will describe how I created a Page Layout based on a custom Content Type with SharePoint 2010 (beta2).   Content Type First thing to do is to define a content type.I will call my Content Type: PicturePageContentType To do … Continue reading

Posted in Geen categorie | 4 Comments

SharePoint 2010 change page content data through Object Model / API – Console Application

This took me some time on google / msdn sdk to find out, I like to share it. It is supposed to programmatically change content to existing pages. First make a console application, set it to .NET Framework 3.5 and … Continue reading

Posted in Geen categorie | Leave a comment

SharePoint 2010 user login check

Check if a user is logged in If you want to know if a user is logged in or not you can check it with the CurrentUser object from the SPWeb. Here’s how you do it in an example: using … Continue reading

Posted in Geen categorie | Leave a comment

SharePoint 2010 custom masterpage with code behind file – Part 2

In part 2 I will tell how I eventually got a code-behind file working on the custom master-page that I deployed trough Visual Studio. To be clear I don’t use SharePoint Designer to customize my master pages so I cannot … Continue reading

Posted in Geen categorie | 29 Comments

SharePoint 2010 custom masterpage with code behind file – Part 1

Part 1 – Deploy a custom masterpage on SharePoint 2010 trough Visual Studio 2010 Introduction Why the creators of SharePoint made it so hard to have an codebehind file for your master I really don’t get, but gladly there’s a … Continue reading

Posted in Sharepoint 2010 | 29 Comments