Storing Custom Settings in the web.config File : appSettings « Configuration « ASP.NET Tutorial






ASP.NET stores your own settings in the web.config file, in an element called <appSettings>. 

<?xml version="1.0" ?>
<configuration>
    ...
    <appSettings>
        <add key="DataFilePath" value="C:\Shared" />
    </appSettings>
    ...
    <system.web>
    <!-- ASP.NET Configuration sections go here. -->
    </system.web>
    ...
</configuration>








16.3.appSettings
16.3.1.Storing Custom Settings in the web.config File
16.3.2.Retrieve values from the appSettings section either programmatically or declaratively.
16.3.3.Loading string from Web.config (C#)
16.3.4.Retrieve AppSetting
16.3.5.ConfigurationSettings.AppSettings