It’s all well and good to talk about how great patterns and principles are, but it’s important to see them in action. With this in mind, this section examines how a simple piece of ASP.NET code that you have probably seen countless times before can be improved with the use of patterns and design principles.