I am working with asp.net mvc4 and have a form where I accept data from a user. Input fields like name, address etc.
I want to be able to validate such with the normal mvc validation attributes but as the site varies based upon the certain parameters, I hold the regex for each attribute in a configuration file that gets loaded at runtime based upon the user (their culture etc). I am using spring.net for dependency injection.
Is it possible to perform dependency injection into custom attributes at runtime and if so, how?