In ASP.NET 1.0 and 1.1 versions of the Framework provided
API's that enabled us to only read information from the configuration file.
There is no way to write information into the configuration file. However,
ASP.NET 2.0 includes a full configuration management API that enables us to
navigate, read and write an application's configuration file. Configuration
settings are exposed as a set of strongly typed object against which we can easily
program. The management API can be used to read and write configuration
settings of remote and local applications. The WebConfigurationManager provides
members (AppSettings, ConnectionStrings, OpenWebConfiguration,
OpenMachineConfiguration, etc.) and using the methods of those members we can
extract information from a configuration file. The sample code snippets have
been written in C#.