Validation Application Block and ASP.NET AJAX - Enterprise Library 3.0 Tutorials
by David Hayden ( Sarasota Florida Web Developer ), Filed: Enterprise Library 3.0
Recently I uploaded a sample of using the Validation Application Block in Enterprise Library 3.0 with ASP.NET:
Validation Application Block and ASP.NET Website Integration Sample - Enterprise Library 3.0
As mentioned in my post, “One of the really cool features in the the Validation Application Block provides ASP.NET and Winform Integration so you don't have to specify redundant validation rules both at the UI and within the business layer. The Validation Application Block comes with web and winform controls that allow the UI to get its validation rules from the business layer, saving you the headache of duplicating validation rules in multiple places.“
A positive feature of the ASP.NET Validator Controls is that they provide client-side validation on the browser without requiring a roundtrip to the server. The PropertyProxyValidator Web Control that comes with the Validation Application Block does require a roundtrip to the server to do the validation.
I am not real thrilled with that fact, but we can get our cake and eat it too by leveraging the wonderful ASP.NET AJAX Extensions and the all powerful UpdatePanel :) Although we can't perfectly simulate the ASP.NET Validator Controls with their client-side validation, we can get pretty close by tossing the PropertyProxyValidator Web Control and everything else in an UpdatePanel to avoid the dreaded postback. Below shows the addition of the AJAX Extensions to the example I provided for download:

The simple addition of the UpdatePanel allows the Validation Application Block to offer client-side like validation without the need for the postback.
Source: David Hayden ( Sarasota Florida Web Developer )
Filed: Enterprise Library 3.0