all things Sitecore related

Pieter Brinkman

Pieter is Technical Marketing Manager for Sitecore Netherlands and owner of He has more than ten years experience with software developing in multiple programming languages and with different Content Management Systems. Before joining Sitecore Pieter was a lead developer for multiple Sitecore and .Net projects, he joined Sitecore in 2011 as an Solution Architect in The Netherlands, after two years as an Solution Architect he joined the Technical Marketing department. In the role as Techinical Marketing Manager he is responsible for the Global MVP program and the Sitecore technical branding strategy.

You can follow Pieter on twitter: @pieterbrink123 or Google+

String.Format with C#

By on July 10, 2008 in ASP.Net with 0 Comments

In this post I will add examples of String.Format or links to sites with good examples.    Double [code:c#] </p> <p> //&amp;nbsp;just two decimal places<br /> String.Format("{0:0.00}", 123.4567);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // "123.46"<br /> String.Format("{0:0.00}", 123.4);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // "123.40"<br /> String.Format("{0:0.00}", 123.0);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // "123.00" </p> <p> // max. two decimal places<br /> String.Format("{0:0.##}", 123.4567);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // "123.46"<br /> String.Format("{0:0.##}", 123.4);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; […]

Continue Reading »

convert UnixTime to DateTime

By on July 4, 2008 in ASP.Net with 0 Comments

In an RSS feed I only had an UnixTime. For presentation I needed to convert this string to datetime. I did this with this code [code:c#] DateTime itemDateTime = new DateTime(1970, 1, 1, 0, 0, 0).AddSeconds(item.unixTime); [/code]   No idea what it does but it works 😀

Continue Reading »

MsSql: How to enable clr (to run c# / vb code in SQL)

By on June 26, 2008 in SQL Server with 0 Comments

Execute the next query to enable CLR.   [code:c#] // Turn advanced options on EXEC sp_configure 'show advanced options' , '1'; go reconfigure; go EXEC sp_configure 'clr enabled' , '1' go reconfigure; // Turn advanced options back off EXEC sp_configure 'show advanced options' , '0'; go [/code] More info about CLR on Microsoft MSDN.

Continue Reading »

Regular Expressions and Matchhandlers

By on June 26, 2008 in ASP.Net with 0 Comments

For a project I need te get the email adresses out of a string with all kinds of text in it. After a lot of trying I found the matchhandler method. It is quite easy, you just need to adjust the Replace command and add a MatchEvaluator. Then you can use the matchhandler to do […]

Continue Reading »

Asp.Net AJAX controltoolkit javascript funtions

By on June 25, 2008 in AJAX, Controls, Javascript with 0 Comments

I've search them all up for a 1000 times. Now I'm going to write them down as reference. This post will grow in the next few months. Remember do not forget to set the behaviorId of the control.  References: CollapsiblePanelExtender Expand: $find('BehaviorId')._doOpen(); Collapse: $find('BehaviorId')._doClose(); $find('BehaviorId').collapsePanel(); ModalPopupExtender Show popup: $find('BehaviorId').show(); Hide popup: $find('BehaviorId').hide(); 

Continue Reading »

String Extension Method: IsGuid()

By on June 23, 2008 in ASP.Net with 8 Comments

I wrote an extension method for the string type. With this method you can check if an string is an Guid. The method returns a Bool. [code:c#] public static class StringExtensions {   public static bool IsGuid(this string input)   {     Regex isGuid = new Regex(@"^({){0,1}[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}(}){0,1}$", RegexOptions.Compiled);     bool isValid = false;     if […]

Continue Reading »

Using Session with a Web Handler File (ashx)

By on June 11, 2008 in ASP.Net with 0 Comments

In on of our project we use ASHX file to dynamicly generate stylesheets depending on the user. An problem occurred when the userdata was loaded from the Session. The Session object was NULL. After searching the internet I found the solution for this problem. You need to implement the folowing interfaces on the ASHX;  IRequiresSessionState and IReadOnlySessionState. See example below. [code:c#] […]

Continue Reading »

Dynamic load whereparameters for linqDatasource

By on April 1, 2008 in ASP.Net, SQL Server with 1 Comment

When using an Linq Datasource (linq to sql) for a datagrid (Gridview, ListView, etc) you don't always want all rows from a table. To exclute data you can use the WhereParameters to add an where statement to your DataSource. You can do limited where statements with the Visual Studio Wizards. When you need more than a […]

Continue Reading »

101 Linq samples

By on April 1, 2008 in ASP.Net with 0 Comments

When learning and working with Linq. I had the need of reference samples. When searching for een example of the select syntax I stumbled on the follow site from Microsoft: 101 Linq Samples It's a good reference guide for al your basic Linq query's.

Continue Reading »

Portofolio: MCPD certification course

By on March 20, 2008 in Portfolio with 0 Comments

To get more developers certified I started a MCTS learning course for the developers. Once in the two weeks all we had half a day to review two chapters, every chapter was reviewed by a developer. Ten developers started the course and at this moment (20 April) six people are MCTS (Web) certified and one MCPD (and two […]

Continue Reading »

Use methods from masterpage in aspx

By on February 7, 2008 in ASP.Net with 0 Comments

If you want to use methods from your masterpage add the following code in the .aspx file (content page): [code:html]  <%@ MasterType VirtualPath="pathToMasterPage" %> [/code]

Continue Reading »

How to create a iGoogle Widget!

By on January 14, 2008 in Google with 6 Comments
How to create a iGoogle Widget!

Because every eveloper needs to have a New Guid generator and .Net info search iGoogle widget ;-). It was time for me to create one! I had no idea where to start, try searching Google no good results. But after clicking along on iGoogle I found the Google Gadgets developer site. After reading some documents and playing with […]

Continue Reading »

Using Google Custom Search Engine (CSE) with Asp .Net

By on January 12, 2008 in ASP.Net, Google with 3 Comments

I’ve been using Google Custom Search Engine (CSE) for one of my projects (searchTravelBlog). When I was trying to implement CSE in NewGuid.NET I found some problems doing this.The big issue is that CSE depends on the html FORM element with submit event for posting all the variables from the hiddenfields.  The CSE code from Google […]

Continue Reading »

obout Suite for .Net 2.0

By on January 11, 2008 in AJAX, ASP.Net, Controls with 1 Comment

When surfing around I found this great range ASP.Net controls. offers a great variety of ASP and ASP .Net controls. The controls are Cross-Browser (including Safari  and Opera).You can download the obout Suite for .Net 2.0. The suite contains the following controls: TreeView  (recommended) Grid Editor Spell checker Calendar Easy menu Combobox Slide menu […]

Continue Reading »

Portofolio: Administrative application for 220 pharmacies

By on December 15, 2007 in Portfolio with 0 Comments

Project description: For a customer of Evident Interactive me and my team build an administrative application. Now 220 pharmacies do their finance administration with this application. The application supports: input from pharmacies, work-flow, reports and data exchange to Twinfield. My role in the project was Lead-developer the project team had a size of 4 developers. […]

Continue Reading »