Placing Configuration Settings in an External File : Introduction « Configuration « ASP.NET Tutorial






File: Web.config

<configuration>
  <appSettings configSource="appSettings.config" />
</configuration>


File: appSettings.config

<appSettings>
  <add key="message" value="Hello World!" />
</appSettings>








16.1.Introduction
16.1.1.Overview of Website Configuration
16.1.2.Applying Configuration Settings to a Particular Path
16.1.3.The web.config File
16.1.4.Using Elements
16.1.5.Locking Configuration Settings
16.1.6.Lock the debug attribute, and only the debug attribute, of the element.
16.1.7.Adding Custom Application Settings
16.1.8.Placing Configuration Settings in an External File
16.1.9.Opening a Configuration File on a Remote Server