My point is that the master page concept is a reality in the Microsoft world and I'm not about to suggest they should adopt a different methodology - I'm just a lowly programmer trying my best to use their tool set. Which I happen to like very much for many reasons.
However, that aside, I wouldn't be at all eager to adopt your suggestion for any kind of medium or large sized project. With no intent to be argumentative , it seems you're missing the real benefits of the master page concept. Here are just a couple of thoughts:
- The master page (and even multiple layers of master pages) are blended together at run time - there is no duplication of code. The act of duplicating pages creates both an unnecessary maintenance chore and also invites inconsistency if the changes are not replicated completely and accurately. Duplication is just not realistic for many projects.
- The master page concept also provides for dynamic content between a master page and a child page. This is an often used technique.
- Master pages often contain links to external scripts and style sheets that require updating and doing this one place is far more efficient and less error prone than doing this in multiple duplicated pages.
As I said, I'm not really the right person to justify Microsoft's architecture. If you want a meaningful discussion about this I suggest posting on http://forums.asp.net/
My basic point is that the master page concept is a reality in the Microsoft world and no amount of suggesting otherwise is going to change that. Further, I think that CoffeeCup could take a big step into that market by trying to work with the concept and not try to simply suggest a different approach.
I've been thinking about making a fresh post related to this topic that focuses on main.css and how some small changes could help this problem quite a lot.
What you are referring to is called a Library. These consist of code snippets, layout options, etc that can be placed on other pages and updated in one location. This is something we are looking into, but as all things it will take time.
