Conditional Statements in web.config
I've built two versions of an asp.net application, same code-base with conditional statements, one that will run on a server, one that will run on a user's un-tethered laptop.
The web.config <authorization> value should be set to <allow users="*" /> for server and <deny users = "?" /> for laptop. I'm constantly having to comment out one line or the other depending on which version I'm working on.
Anyone know of a way to conditionally read from two different web.config files depending on which configuration (debug vs. release) is in effect, or a way to add a conditional statement to web.config, or achieve the intended result in some other way?
|