We are planing to provide a general setting(configuration) system for a single page web application base on asp.net and SqlServer , we need a dynamic modular setting(configuration) which it can apply settings in a hierarchical way for any part of any module for example consider we have a difaultCityCode for each user and if the user didn't provide the value for that it should be retrieved from the user's portal and if the portal either didn't have the value it should be retrieved from the highest level in the hierarchy called SystemSetting. we need to know if there is a clean and reliable solution for such a system?
Best regards Matthew