Practical .NET


Separating Validation Code from Business Objects Using DataAnnotations

While you can create classes that contain their own validation code, there are scenarios where it makes sense to separate validation code from the properties it validates using DataAnnotations.

Incremental Validation in WPF

WPF provides the richest environment for developers to incorporate standalone validation classes into their user interfaces—and for business object developers to support an application's user interface.

Exploiting the .NET Validation Frameworks

Implementing one of three interfaces can turn your business classes into self-validating components that seamlessly integrate into WPF, Silverlight and ASP.NET MVC applications -- and can be easily extended to other environments.

Construct XAML Forms at Runtime with Resource Files

WPF makes it very easy to load non-executable resources at run time -- including a complete UI in XAML. Here's how to leverage that functionality to create applications that you can customize without recompiling.

ASP.NET: Empowering Your Master Pages

You can use your Master Pages just to structure your pages. Or you can integrate them into your application with custom code that your content pages can access.

Creating the Perfect ASP.NET UI with Web Parts and User Controls

Web Parts and User Controls let you easily build customizable UIs with the same tools you use to create inflexible user interfaces -- and implement an MVC-like pattern in ASP.NET.

Integrating with the .NET Framework UI Controls

With a little bit of code (along with a .NET interface and collection), you can integrate the properties on your classes with the .NET user interface controls to simplify your presentation layer.

Extending XAML Applications with Custom Commands

In WPF and Silverlight,you can separate your UI logic into a set of Command classes that facilitate loose coupling, testable designs, and reusability.

Test-Driven Development, Generate from Usage and Continuous Testing

Use Test-Driven Development, generate from usage and a free Visual Studio add-in to let you spend more time doing what programmers want to do: writing code that works.

Integrating DataViews with Multiple Cascading DropDown Lists

Peter Vogel solves a reader's problem by integrating data from multiple dropdown lists, the FormView and some Ajax magic that calls code in a method in an ASPX page.

Integrating Ajax Code into the ASP.NET Validation Infrastructure

Here's how to integrate the ASP.NET CustomValidator control with client-side code to create a page that uses Ajax and server-side code to validate data at the browser.

High-Performance ASP.NET Caching

Crafting a caching strategy is critical to building effective Web apps. It's only possible when you know what options are available and how to integrate them.

Integrating Lambda Expressions and Events

Using lambda expressions is a more compact way of wiring up events in both C# and Visual Basic. It also provides a way of passing parameters to an event without having to redefine the event's parameters.

Recognizing Mobile Browsers

ASP.NET 4 upgrades the support for detecting browser capabilities with profiles for the latest mobile browsers. The good news is that you can use that new information with older versions of ASP.NET.

Insider: A Debugging Story

Peter Vogel looks at debugging from a different specific: One incident whose resolution depended, in part, on understanding who'd already searched for the bug and the history of the bug itself.

Upcoming Events

.NET Insight

Sign up for our newsletter.

I agree to this site's Privacy Policy.