We're publishing two websites based out of one project.
The main site is a asp.net web forms web application, written in c#. The next one we are creating will derive from this. We want to be able to maintain both sites by editing the same code. So we don't have to edit simple changes in both projects.
The difference between the sites, are the css file(and maybe the master page). And some dependant code, like f.ex. login.
I figured I could do this using different build configurations.
First of all: Is this a good way to solve it?
If yes:
- How do I create a web.config file to load a different settings?
- How do I load different css file(and different master page).
- How do I create dependent code?
If no:
What would be?
Thanks for any help and tips contributed.