Archive of Code Snippet

Here's a quick code snippet that I used for replacing files on an EPiServer site. A little background, I got asked by a customer to upload a new version of a bunch of images they had in the PageFiles directory...

The other day I was building a mega menu for a customer - one of the requirements was to let the editor choose the number of columns of links to display. This turned out be quite easy with ASP.NET's...

Another little quick tip. I was browsing the EPiServer World forum and came across a common question.
by David Green
I am using the EpiServer:PageTree control to generate a nested <ul><li> list in the format below.
However I am...

Plenty of websites have contact forms or other forms that users fills out to either make a request or provide feedback. This is something that many sites use instead of making their email address public available. To avoid receiving to...

Earlier I wrote about the PageList control from EPiServer, I mentioned in that post that the markup that the PagingControl renders is not the best. For instance it will not work without JavaScript enabled on the client (for...

Disclaimer: In this example I've kept the code simple to make it easier to read and to give you an idea of how you might approach something like this with EPiServer. This code should not be used in production scenarios...

Here are a few CSS tricks I've picked up along the way.
Always visible vertical scrollbar
When you have a fixed width centered web site open you've probably noticed that the page sometimes jumps a little. This is because the vertical scrollbar...

Often we need to filter some of the pages in our PageDataCollection. Perhaps we wish to only show the pages that are published or that the user has access to. For this EPiServer has a few filter classes. Below you'll...