title: Centralised Connection String for multiple application asp.net
body: <p>I have a web server with multiple application running. All the application have their <code>web.config</code> file. If the database password changes due to Policy I have to manually change the password in each of <code>web.config</code> files in the app setting section.</p>
  
  <p>I was reading about the connection string setting in <a href="https://stackoverflow.com/questions/8431709/machine-config-appsettings-are-null"><code>machine.config</code> file</a>. </p>
  
  <p>Now my question is if I put connection string in appsetting section of <code>machine.config</code> with name <code>ConnectionString</code> and same in my <code>web.config</code> file will it overwrite the <code>machine.config</code> file values.</p>
  
  <p>In my <code>machine.config</code> following is the setting</p>
  
  <pre><code>&lt;configuration&gt;
    ....
    &lt;appSettings&gt;
      &lt;add key="ConnectionString" value="value"/&gt;
    &lt;/appSettings&gt;
  &lt;/configuration&gt; 
  </code></pre>
  
  <p>similarly in my <code>web.config</code> file </p>
  
  <pre><code>&lt;configuration&gt;
    ....
    &lt;appSettings&gt;
      &lt;add key="ConnectionString" value="value"/&gt;
    &lt;/appSettings&gt;
  &lt;/configuration&gt; 
  </code></pre>
  
  <p>And I get the value in my code as below</p>
  
  <pre><code>string conString=ConfigurationManager.AppSettings["ConnectionString"];
  </code></pre>
  
  <p>will I get the overloaded value?</p>