Google News
logo
.Net - Interview Questions
What is the appSettings section in the web.config file?
We can use the appSettings block in the web.config file, if we want to set the user-defined values for the whole application. Example code given below will make use of ConnectionString for the database connection throughout the project :
<em>
   <configuration>
       <appSettings>
           <add key= "ConnectionString" value="server=local; pwd=password; database=default"  />
       </appSettings>
   </configuration>
</em>
Advertisement