Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 17th, 2012  |  syntax: None  |  size: 0.48 KB  |  hits: 19  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Multiple appSettings section in web.config
  2. <section name="development">
  3.     <appSettings>
  4.     </appSettings>
  5. </section>
  6.  
  7. <section name="test">
  8.     <appSettings>
  9.     </appSettings>
  10. </section>
  11.  
  12.  
  13. string connectionString
  14.    = ConfigurationManager.GetSection("test").AppSettings["connectionString"];
  15.        
  16. <appSettings>
  17.    <add name="fearofawhackplanet.connectionString" value="your connection string" />
  18.    <add name="cosCallis.connectionString" value="my connection string" />
  19. </appSettings>