Conditionals in web.config
I have a development version of my application and an extranet version. both are on the same server. one folder is called application and the other is called application.extranet (for example).
I have one database for the dev site and one for the extranet site. Right now, I have to update the web.config manually when i publish the website so that it uses the extranet version of the database. Since both versions are on the same web server, is there a way to write a conditional in the web.config so that the right database will be used based on the folder name?
|