This is the archive page for .NET Junkie. Click to go to the frontpage of this site.

Using IDataErrorInfo with Validation Application Block

The IDataErrorInfo interface is a core part of the .NET framework and both WPF and ASP.NET MVC use this interface for validation purposes. In this article I will show how to build an abstract base class that implements IDataErrorInfo in a way that Validation Application Block is used under the covers.


- filed under .NET General, C#, Enterprise Library, Validation Application Block - four comments / No trackbacks - §

Dependency Injection in ASP.NET Web Forms with the Common Service Locator

This article describes how to create and configure a custom PageHandlerFactory class that enables automatic constructor injection for System.Web.UI.Page classes. This keeps your application design clean and allows you to keep the application’s dependency to the IoC library to a minimum.


- filed under .NET General, C#, Dependency injection, Simple Service Locator - nine comments / No trackbacks - §