“The value ‘NaN’ is not valid.” – The ModelBinder way

In my previous post I described how to solve “The value ‘NaN’ is not valid.” when an int parameter contains NaN. My colleauge then convinced me to solve this with a custom ModelBinder instead. So, here is the solution. First we create a custom modelbinder. This can now be used directly in your endpoint by …

XhtmlString: Render blocks and convert link to external without HtmlHelper

Here are two code snippets to help you make a XhtmlString display external links instead of the internal ones and also render blocks, dynamic content etc. This could be helpful if you don’t have access to a HtmlHelper like in a WebApi. The first one just converts links. It loops through all fragments and converts internal …

Convention for EPiServer Find to ignore large files

EPiServer Find has a limit when indexing files (last I heard this was 50MB), but nothing really happens if you try to index a large files except that you get an error message from the indexing job. But if you have some very large files, you might bump in to performance problems on the server. …

Add CultureSpecific to an exisiting block area – keep the data

Recently we built a globalized site in EPiServer 7. When the page was filled with content, the client wished that the block area should be the same for all languages. Once the page was launched the customer realized that they needed to have different blocks in different languages, which meant that we needed to make …