Posts

Showing posts from July, 2007

Enterprise Library 3.0 validation

I have tested the enterprise library 3.0 validation application block and i found that it is very useful in enforcing the valid data entered before any form processing. It is flexible which you can create your own custom validator and you also can reuse the out of the box validator that includes RegexValidator , RangeValidator , StringLengthValidator and etc. I strongly suggest you to use it if you are building 3-tier enterprise application because it really save you time in form validation and the convenience that it brings. 3 things you need to do: 1-first you need to create a bussiness entity 2-add the enterprise library references 3-call the business entity from the form. using System; using System.Collections.Generic; using System.Text; using Microsoft.Practices.EnterpriseLibrary.Common; using Microsoft.Practices.EnterpriseLibrary.Validation; using Microsoft.Practices.EnterpriseLibrary.Validation.Validators; using Microsoft.Practices.EnterpriseLibrary; using WindowsApplication5...