Anybody programming with ASP.NET knows that you can store custom application’s settings in the web.config file, under the
This means that if you frequently change the custom keys in the
Let’s see how to put this tip in practice. Create a file named ExternalWeb.Config (you can use any name you want, but we suggest using the .config extension, so that the user can’t download and view it) with just the
Then, in web.config write the
As a last note, if your external file has a key with the same name of a key defined in web.config, the key in the external value will override the value stored in web.config.
Note: This tip applies to Windows Forms’ configuration files too! (In VS.NET this file is named app.config, but after compilation it is copied to the bin folder as your_app_name_here.exe.config)