i would like to have my main web.config in the root where it normally is and have another merged in.
Is this possible , i was thinking on placing a another web.config in APP_DATA/CONFIG which will have some additonal stuff that i can update without having to touch the main web.config
I seem to remember that this is possible but i am unsure.. can asp.net dynamically merge these and use both??
Can anyone provide further info?
THanks
No idea what you mean by merge web.config files, but you can have web.config files in subfolders of your ASP.NET application which could override some sections from the root config file (only some sections could be overridden). So for example you could have the following section in your root web.config file:
and then have a ~/somefolder/web.config which overrides this section:
and now if inside
~/somefolder/foo.aspxyou try to accessConfigurationManager.AppSettings["foo"]you would getbaz.