Inheritance and page templates
-
Hi all. I am developing a website and since most pages on the site should have the same basic functionality and layout, I implemented a base template from which the other pages inherits, after reading Peter Provost's excellent article (http://www.codeproject.com/aspnet/page\_templates.asp). Now I have found that I really would like to split the template into one basic, and one a bit more developped that in its turn inherits from the basic one. Then some pages will inherit from the basic and others from the more advanced, and they will all have the functionality of the basic one. However I have not been able to figure out how to make the two step inheritance work: I want to add some html-controls in the more advanced template, preferably from the code behind, and additional controls in the child pages (directly in the aspx-file, or from the code behind -either one would be ok). I tried overriding GenerateHtmlForm() in the advanced template, but got the error that there could only be one form, runat at server in a page. Any good ideas? Is it at all possible to make inheritance work in more than one step with aspx? Thanks /EnkelIk