User-885242585 posted
I have a web application in asp.net 4.0 (web forms). The over all app is organized into sub apps by a product.
example.
www.myapp.com\<product1>\site
www.myapp.com\<product2>\site
There could be lots of products but all the code in the site folder is identical in all site folders. The only difference in each folder is the web.config file which contains app settings for that specific product and a DB connection string. Right now i just
edit the site code in one place and copy/pasta to all the product folders.
Is there a better way? I thought about having just one site folder and having multiple web.configs in the same folder. like web.product1.config and web.product2.config and then pick one dynamically at page_load. not sure if that would work
Also thought about moving all the settings in a DB table, but seemed overkill to create a db table just to hold 20ish app settings.
thoughts
thanks