Umbraco Site Navigation Menu Model Example in C# MVC

This post gives you the basic code to loop through the pages in your site and populate the navigation model. It also gives you the code to add it to and call it from the cache.

Read More

How to create and use custom configuration sections in ASP.NET

This post will show you how to create a custom config section in your .NET application and use it in your code.

Read More

Simple Reusable .NET Caching Example Code in C#

Caching is important because it can speed up your website or application. Here is a simple example for you to take away and re-use:

Read More

What does the term dogfooding mean?

There are certain terms in the software industry which you may hear for the first time and immediately understand their meaning. For instance, backdoor; a hidden method of gaining access to a computer system. The term dogfooding is not an obvious one. This pos…

Read More

List ForEach Method

You may or may not be aware of the .ForEach() Method which is available on List objects. It is very handy for shortening your code. Lets say you want to write a method which returns a list of MailAdress objects. A more traditional way would be to do the…

Read More

Sorting a list into random order using linq

Every now and again, there is a need to produce a list in a random order. I've found a very reliable way to do this using linq and the Guid class. It might sound complicated, but when you see the example, it should make sense and you should see how simple i…

Read More

Get a flat list of exception and inner exception error messages

Debugging errors can be difficult, especially when you need to see the errors inside the errors. This post shows you how you can get all errors as a collection of errors rather than them being hidden inside other errors. You can create an extension method like…

Read More

Helper methods for retrieving web config app settings

This post gives you some examples of how you can check for errors when retrieving web.config app setting values.

Read More

MVC Custom Model Property Validation Attributes

This post shows you how to create your own custom validation attributes in MVC. You can then decorate your model properties with them on your forms.

Read More

How to create a custom styled twitter feed for your website

In this tutorial I show you how to create your own custom twitter feed for your website, which you will have full control over the styling, like the one I have on my about page. It also pulls through the follower count. This tutorial is meant for an MVC websit…

Read More