title: Getting the key value of appSettings from a different config files
body: <p>I have a config file named Refer.config which contains the appSettings as:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;configuration&gt;
  &lt;appSettings&gt;
      &lt;add key="Database" value="CouchDB"/&gt;
    &lt;/appSettings&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>Now in the web.config i have referenced it as:</p>
  
  <pre><code>&lt;appSettings file="C:\Users\312171\Documents\Visual Studio 2008\WebSites\WebSite4\Refer.config"&gt;
  
    &lt;/appSettings&gt;
  </code></pre>
  
  <p>Now in the cs file i m trying to access the key value of appSettings like this:</p>
  
  <pre><code>protected void Button2_Click(object sender, EventArgs e)
      {
          string filetype = ConfigurationManager.AppSettings["Database"];
          testvalue.Text = string.Format("The key value is:",filetype);
      }
  </code></pre>
  
  <p>But it is not returning the key value...
  What mistake i have made?? Please help me out..</p>