Base Page / Master Page Confusion
I've been doing Beginning ASP 4, and I've confused myself about base pages and master pages, specifically when to use one, or the other, or both.
I did a little test whereby I've entered the following code:
this.page.title = ("XXXX Title")
where XXXX = BasePage, MasterPage or just Page.
I've found that the page overrides the master page which overides the base page. Presumable because they are applied at different stages of the lifecycle. But it got me to thinking, why use a base page at all? You could stuff all the code common to every page in the master page codebehind, then it's all neat and in one place.
Every content page you do receives all the code from the masterpage, so what's the point of a base page?
I'm not sure I get the whole object oriented thing yet... :-/
Thanks for any insights!