I am not sure if it is possible I have seen:
Change Attribute\'s parameter at runtime.
My case is very similar but I am trying to change the attribute of a class in
You need to code your attribute so that it supports runtime values. For example, the validation attributes support Internationalization of messages through the setting of a resource type and resource string as opposed to the static Message string.
Another approach is to use a IOC container such as StructureMap or Unity to provide some object/service that provides the values.
If you don;t want to couple your attribute to a particular container, use the Common ServiceLocator wrapper provided by the Patterns and Practices group.