Validators in the Middle-Tier-A New Article on TheServerSide.Net

I just published an article on TheServerSide.Net. It's about creating and using validators in the middle-tier. Specifically, it talks about how to use attribute progamming along with reflection to decorate and then validate parameters, properties and fields.

http://www.theserverside.net/articles/showarticle.tss?id=Validators

The code can be gotten from here.

http://www.cybral.com/solutions/tools.htm

Any constructive feedback is appreciated.

1 Comment

  • Cool stuff. I've taken a very similar approach. One thing that I've recently introduced is the ability to dynamically inject asp.net validators into my Web Forms by reflecting on the validators applied. It requires some kind of mapping between the properties the validators are validating and what controls are being used to enter that data. Allows you to add validation in the UI without duplicating any of the logic.

Comments have been disabled for this content.