Blog

6 Sep 2010 ...

Add a stylesheet link programmatically in ASP.NET

Code snippet for programmatically adding a CSS link in ASP.NET.

26 Aug 2010 ...

IIS.Net a great resource

IIS.net a great resource of information that easily passes you by. Small tips of how to use the web server to optimize your site, on startup take it for a warm-up and much more.

26 Aug 2010 ...

System.Web.AspNetHostingPermission when using third-party assembly

When downloading third-party-product to include in your project, you can easily get this error: System.Web.AspNetHostingPermission.

9 Aug 2010 ...

Unit test an EPiServer 6 website using Visual Studio 2010 and MSTest

When unit testing it can be tricky being dependent on a web context. In this post we'll look at how to start EPiServer and run it outside of a web application to make unit testing easier.

9 Aug 2010 ...

Run EPiServer CMS 6 on ASP.NET 4.0

Getting EPiServer CMS 6 up and running on ASP.NET 4.0 is easy, although it should be noted that EPiServer doesn't officially support ASP.NET 4.0 yet.

6 Aug 2010 ...

Use UpdatePanel inside an EPiServer custom property

In order to use ASP.NET AJAX inside an EPiServer custom property you have to have a ScriptManager present. Here's an example of how to add one programmatically.

4 Aug 2010 ...

Map EPiServer properties to custom property controls

The PropertyControlClassFactory class makes it easy to map EPiServer properties to custom property controls to modify how properties are rendered.

30 Jul 2010 ...

Loading and saving a custom property value with PropertyUserControlBase

The PropertyUserControlBase class in Template Foundation has been updated with two new events called PropertyLoad and PropertySave, making it easier to load and save the property value.

25 Jul 2010 ...

Custom properties in EPiServer using user controls

EPiServer Template Foundation makes it a lot easier to create custom properties based on user controls. In this post we go through the steps needed to create a new custom property in EPiServer and use user controls for rendering the property in edit mode and on page templates.

25 Jul 2010 ...

Introduction to EPiServer properties

This post tries to clarify what an EPiServer property is and how it works, primarily to enable us to better develop custom properties for EPiServer websites.

17 Jul 2010 ...

Using config transforms for EPiServer settings

The build-specific configuration transforms that came with Visual Studio 2010, more specifically MSBuild 4, offer a pretty clean way of managing build-specific configurations. Here's a way of doing it, including a way of managing EPiServer-specific settings.

16 Jul 2010 ...

New EPiServer website using Template Foundation

In this post we'll look at how to set up an EPiServer CMS 6 website from scratch based on EPiServer Template Foundation.

9 Jul 2010 ...

Book review: Clean Code by Robert C. Martin

To write code that will last for a long time, over iterations and between programmers, focus must lie on writing Clean Code. After stating that, what does Clean Code actually mean and which rules should a programmer follow.

2 Jul 2010 ...

Built-in SMTP-server in the IIS returns 5.7.1 Unable to relay

Built-in SMTP-server in the IIS returns "550 5.7.1 Unable to relay" after I had upgraded the server to Windows Server 2008 SP2...

21 Jun 2010 ...

Introduction to EPiServer Template Foundation

In this post we’ll look at how to include EPiServer Template Foundation in your EPiServer project in order to use the different page type base classes and publish EPiServer pages using Windows Live Writer through the MetaWeblog API.

2 Jun 2010 ...

ClassFactory not initialized exception in InitializableModule

The new initialization system in EPiServer 6 can be used to execute logic in a specific order on startup. This post explains how to ensure your startup modules are executed after the DataFactory has been initialized properly.

2 Jun 2010 ...

Security exceptions when using Page Type Builder

When adding Page Type Builder to an EPiServer project you may run into security exceptions because the assemblies aren't fully trusted. Luckily, fixing it is quick and painless!

26 May 2010 ...

Cache objects in EPiServer with page dependencies

EPiServer comes with its own set of cache management classes to help you cache objects which depend on specific EPiServer pages, and also ensure cache updates are propagated among multiple web servers.

25 May 2010 ...

Open-source framework for EPiServer 6 will be presented at Partner Summit

At EPiServer Partner Summit we'll present an upcoming open-source framework for EPiServer 6 which aims to reduce repetitive tasks and extend EPiServer core functionality by adding MetaWeblog support, tags, date folder sorting and a whole lot more.

23 May 2010 ...

How to configure your Windows logon background in Windows 7

Windows 7 has really taken steps further to enable the user to personalize the experience. One thing that can be changed if you look a little bit closer and is a little bit geeky is the logon screen wallpaper.

21 May 2010 ...

Attach EPiServer event handlers on startup using InitializableModule

Explanation of the new InitializableModule concept in EPiServer 6 which is used to implement functionality that should execute when an EPiServer site starts, for example to attach event handlers.

21 May 2010 ...

Create a new page language branch programmatically in EPiServer

This article describes how to create a new language branch programmatically for an existing page in EPiServer.

21 May 2010 ...

Create a page programmatically in EPiServer

Code sample demonstrating how to create new EPiServer pages programmatically using the DataFactory class.

20 May 2010 ...

Search pages in EPiServer using FindPagesWithCriteria

How to find pages in EPiServer by searching using the FindPagesWithCriteria method. The code sample describes how to search in EPiServer using criterias based on page properties.

8 Dec 2009 ...

Introduction to the PageTypeBuilder project

An introduction to Joel Abrahamsson's PageTypeBuilder project for EPiServer. Here I go through the basics of defining a strongly typed page type including page type inheritance.

8 Dec 2009 ...

How to set up an EPiServer website

This post mainly aims to complement Frederik Vig’s posts on setting up a new EPiServer site with some comments and pointer that I find valuable.

12 Oct 2009 ...

Introduction to EPiServer Dynamic Data Store (DDS)

This post provides an introduction to the Dynamic Data Store, or DDS, which was introduced with EPiServer 6.

16 Sep 2009 ...

Parse an EPiServer XHTML property with Dynamic Content

This post explains how to parse XHTML which contains dynamic content in EPiServer so that we can retrieve the actual markup.

14 Apr 2009 ...

Managing e-mail subscriptions in EPiServer

In this post we create an admin plugin for EPiServer which allows administrators to add or remove e-mail subscribers.

8 Sep 2008 ...

Localize page type and page property names in EPiServer

This post shows how to translate page type and property names and descriptions to have them appear in the correct language in the editor interface when globalization is enabled for an EPiServer web site.

26 Aug 2008 ...

Using web parts in EPiServer

This article explains how to use web parts for EPiServer templates using the Web Part Framework for EPiServer which is available on EPiCode.

18 Aug 2008 ...

Run a scheduled job as a specific EPiServer user

This post shows how to login to an EPiServer site programmatically, for example to execute a scheduled job as a specific user.

15 Aug 2008 ...

How to get the simple address of a page in EPiServer

This post explains how to get the simple address of a page, if any. As it turns out, it's just a matter of getting the PageExternalURL property.

8 Aug 2008 ...

Create a scheduled job in EPiServer

This post explains how to create a scheduled job in EPiServer CMS.

24 Jul 2008 ...

Create a custom URL rewrite provider for EPiServer

Post explaining how to implement a custom URL rewrite provider in EPiServer by inheriting the FriendlyUrlRewriteProvider class and customizing its behavior.

7 Feb 2008 ...

How to get the friendly URL of a page in EPiServer CMS

This post explains how to get the friendly URL of a page in EPiServer, handy for those cases where you won't get automatic rewriting of internal URLs.