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+ Sort generic list with a delegate.

By on April 10, 2009 in ASP.Net with 2 Comments

You can use a delegate to sort a generic list. Example   GenericList ObjectItem = new GenericList ObjectItem() GenericList.Sort(delegate(ObjectItem i1,ObjectItem i2) {  return i1.SortProperty.CompareTo(i2.SortProperty); });

Continue Reading »

Asp.Net: Using a Usercontrol property with ObjectDataSource selectparameter

By on April 9, 2009 in Uncategorized with 0 Comments

I was using a ObjectDataSource to generate a listing including paging. The ObjectDataSource used the GetItems method of my usercontrol. See this previous post. This construction works great. But now I needed to do some custom filtering in the GetItems method based on a property of the usercontrol. At first I tried to use the property […]

Continue Reading »

Sitecore: itemlist with ObjectDataSource, Listview and DataPager

By on April 8, 2009 in ASP.Net, Controls with 2 Comments

For a new project I started working with Sitecore again. I needed to create a listing of items with paging. I implemented a Listview with a ObjectDataSource and the DataPager control. <asp:ListView ID="lvListing" runat="server" DataSourceID="odsListing" onitemdatabound="lvListing_ItemDataBound">     <ItemTemplate>          <li class="clearfix">             <a class="thumb" ID="thumnailLink" runat="server" >                  <sc:Image Field="Thumbnail" ID="thumbnailImage" MaxWidth="120" runat="server" />             […]

Continue Reading »

Portfolio: Using Openlayers and WMS

By on April 2, 2009 in Portfolio with 0 Comments

For our customer Prorail I prototyped a Google Map control with all dutch train-rails and stations rendered on it.   The map is build with OpenLayers it renders the rails based on WMS images and the stations from KML, both sources come from Arcgis Server.

Continue Reading »

Visual Studio: Disable Compile Warnings

By on March 4, 2009 in Uncategorized with 0 Comments

#pragma warning disable 1591 #pragma warning restore 1591

Continue Reading »

A new GoogleCSE platform

By on March 4, 2009 in Portfolio with 1 Comment

I finished building a Google CSE platform and deployed multiple .Net related searchenginges.  dotNetSearch.Net SilverlightSearch.Net SharepointSearch.Net (with Bas)  Let me know If you have good ideas or sites for the searchengines?  More will follow.    

Continue Reading »

Asp.Net: Caching Rss feeds

By on March 3, 2009 in ASP.Net with 0 Comments

For I needed to cache the RSS feed (on the right). I did this with the .Net Cache namespace. if(Cache.Get(RssUrl) == null) {  RssDocument rssFeed = RssDocument.Load(new Uri(RssUrl));  Cache.Insert(RssUrl, XDocument.Parse(rssFeed.ToXml(DocumentType.Rss)), null, DateTime.Now.AddMinutes(15), TimeSpan.Zero); } XDocument rssXml = (XDocument)Cache.Get(RssUrl); In this examle I add the RSSFeed content as object in the cache and use the url […]

Continue Reading »

SQLReporting service: Deployment

By on March 3, 2009 in ASP.Net with 1 Comment

When deploying a project to a internal test server I got the following error: The definition of the report ‘Main Report’ is invalid. An unexpected error occurred in Report Processing. Could not load file or assembly ‘Microsoft.ReportViewer.ProcessingObjectModel, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ or one of its dependencies. The system cannot find the file specified.  Fix this by […]

Continue Reading »

Asp.Net: Charting Control (Error ChartImg.axd)

By on March 3, 2009 in ASP.Net, Controls, Microsoft with 3 Comments

After installing and playing with the Asp.Net Charting control I decided to use it for a customer. When integrating the control to the project I got the following error "Error executing child request for ChartImg.axd" This error occurred because I did not update my web.config file. You have to add the following appSettingkey, httpHandler and handler. [code:xml] <appSettings>     […]

Continue Reading »

Asp.Net: Menu control remove MenuItem (MenuItemDataBound)

By on February 26, 2009 in ASP.Net, Controls with 0 Comments

For a project I needed to remove menu items to the pages in the folder ‘Subscriberpages’ when a the user is in the Role of ‘Marketing’ and ‘AccountManagement’. To do this I added the following code to the MenuItemDataBound event. protected void mainMenu_MenuItemDataBound(object sender, MenuEventArgs e) {  SiteMapNode node = e.Item.DataItem as SiteMapNode;  if (node.Url.Contains("<em>Subscriberpages</em>"))  {   if […]

Continue Reading »

Asp.Net: Method to get week number (getweekofyear)

By on February 21, 2009 in ASP.Net with 0 Comments

This method return the integer weeknumber of a specific date.  public static int GetWeekNumber(DateTime date) {  // Gets the Calendar instance associated with a CultureInfo.  CultureInfo myCI = new CultureInfo("nl-NL");  Calendar myCal = myCI.Calendar;  // Gets the DTFI properties required by GetWeekOfYear.  CalendarWeekRule myCWR = myCI.DateTimeFormat.CalendarWeekRule;  DayOfWeek myFirstDOW = myCI.DateTimeFormat.FirstDayOfWeek;  return myCal.GetWeekOfYear(date, myCWR, myFirstDOW); } […]

Continue Reading »

.Net: Example basic consoleapplication with parameters

By on February 20, 2009 in Microsoft with 2 Comments

This is a basic example of an console-application with parameters used for a scheduled tasks. The application will be scheduled to run every day with the -n parameter. But the application can also run on a specific date by using the -d parameter. class Program {  //Parameters  private static DateTime theDate;  private static RunMode mode […]

Continue Reading »

Silverlight: Debugging Silverlight (Attach to proces)

By on February 17, 2009 in Silverlight with 0 Comments

When attaching to a process for debug Silverligh you need to remember that Silverlight is Client-side code. So attach to IExplorer.exe, FireFox.exe or what ever browser your using. Cheers, Pieter

Continue Reading »

Asp.Net: Using the OnCommand Event with CommandArgument

By on February 4, 2009 in ASP.Net, Controls with 0 Comments

When using a button, linkbutton or imagebutton with CommandArguments or CommandName you can use the OnCommand event instead of the OnClick event. Using the OnCommand Event you use less code to extract the CommandArgument and CommandName from the Event comparing to the OnClick event (because you don’t need to cast the control). Code example The Aspx: <asp:ImageButton […]

Continue Reading »

Microsoft Certified Professional Developer: Webapplications (MCPD: Web)

By on February 3, 2009 in Portfolio with 0 Comments

After finishing my MCTS: Sql Server 2005 I started learning for my last exam for becoming MCPD: Web applications. Yesterday I passed this exam with a score of 875. This MCPD status is for Asp.Net 2.0. Soon I will do my exam for .Net 3.5.  Now I will start focusing more on WPF and Windows developing and start building more […]

Continue Reading »