Classic ASP had ‘server side includes’ so that one could easily design a generic layout for the header, footer, left or right side bar.
In ASP.NET, I think we must use ‘Page Templates’. Although most people say that it is easy to use, I find it rather complicated, as we must copy the whole HTML code inside the ‘Render’ function. Is there a simpler method? Can I load the code from a HTML file instead pasting the whole code in the ‘Render’ function?
Or is there any better alternative to ‘Page Templates’?
I would have thought Master Pages were the standard approach in ASP.NET (2.0 and later).
Note this is all visually created, no need to manually copy html in Init/Load/Render events, ASP.NET does it for you.
A good book I’ve read is Essential ASP.NET 2.0 by Frtiz Onion. It has a good succinct discussion of master pages in Chapter 2.