Configuration API

The configuration API for ASP.NET developers begins with the WebConfigurationManager class in the System.Web.Configuration namespace. The WebConfigurationManager includes static (shared) properties to fetch application settings and connection string.

The configuration API makes it easy to read any setting in a configuration file by using the GetSection static method. You can read and write configuration files for your application, for another application on the same machine, or an application on a different server.