c# - Can I use an external file for system.web config similar to file attribute for appSettings -
i hoping separate identity config in system.web section of web.config , put in separate file don't have check in source control username/password being used.
is possible? looks file attribute doesn't work system.web section , if configsource attribute work, wouldn't want have of system.web config section in different file.
can help?
thanks!
a bit more research has revealed while can't use configsource or file attributes on <system.web> section, can use on tags within it.
for example, wanted move our globalization settings out of web.config globalization.config, , changed our web config this:
<system.web> <globalization requestencoding="utf-8" responseencoding="utf-8" culture="auto" uiculture="auto" /> <!-- other settings removed --> </system.web> to this
<system.web> <globalization configsource="globalization.config" /> <!-- other settings removed --> </system.web>
Comments
Post a Comment