title: static value in web.config
body: <p>I have a project running on 2 servers. 1 testserver with a connection to a testDB, and one on the real server, with real DB.</p>
  
  <p>The only different thing in each of the running instances of this project is the web.config.</p>
  
  <p>What i'd like to do is have the possibility to set a value in web.config, a bool, which then could be read by the code. This bool would be true if the app is in testing mode. i'd set it manually, the project then would read it out, and when it's true, the mails the app would send, then would be kept internal, so people dont actually get mail. I did this before with setting a <code>public static bool</code> in <code>global.asax</code> but in Asp.net MVC everything is built into one DLL, so i cant change it on the deployed server in that case.</p>
  
  <p>Is this possible? or would there be a nice other solution?</p>