Configuration File

Oct 2, 2009 at 3:52 PM

How can I use this library with the validation rules in the web.config file? A short example would be great.

Also, is it possible to put the validation rules in a configuration or XML file apart from web.config?

Thank you

Coordinator
Nov 1, 2009 at 3:01 PM

@JefferyP2100: this article shows you how to put rules in app.config file: http://davidhayden.com/blog/dave/archive/2006/12/25/ValidationApplicationBlockEnterpriseLibrary3PartIV.aspx - it should work the same way with web.config.  Internally, the library handles both attribute-based and XML-based validation, so it should work without problem.