WHAT IS THE APPSETTINGS SECTION IN THE WEB.CONFIG FILE?

Sumit Kesarwani

Total Post:782

Points:3910
Posted by  Sumit Kesarwani
 1133  View(s)
Ratings:
Rate this:
  1. Sumit Kesarwani

    Post:782

    Points:3910
    What is the appSettings Section in the web.config file?

    The web.config file sets the configuration for a Web project. The appSettings block in configuration file sets the user-defined values for the whole application.

    For example, in the following code snippet, the specified ConnectionString section is used throughout the project for database connection:

    <configuration>

    <appSettings>

    <add key="ConnectionString" value="server=indiabixserver; pwd=dbpassword; database=indiabix" />

    </appSettings>

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!