> Hi
>
[quoted text clipped - 14 lines]
>
> www.munna.shatkotha.com/blogwww.munna.shatkotha.comwww.shatkotha.com
Munna,
Thanks for that link. It was pretty helpful. But it's still a step
beyond where I am. Specifically, he says in the first paragraph:
>For example, you could define a top-level master-page called “MainMaster.master” that defines a >common logo header and footer, and defines a content-placeholder for the page called “content”. >You could then define two sub-masters beneath it
Okay, I do know how to define the top level master. But how, exactly,
do you define a submaster?
I've tried adding a new MasterPage item, then adding a MasterPageFile
attirbute, and it didn't seem to like that, and I've tried adding a
new aspx page, then renaming it to Child.master and changing the
"Page" attribute to "Master", and it didn't like that either.
I appreciate the help, though. At least I know it CAN be done, and I
can keep on trying.
bruce barker - 20 Jul 2008 20:21 GMT
the trick to remember is that master pages are just control on a page
that refers to them (they do not contain pages). so a page can refer to
master1. master1 can refer to master2 (its the content for master2), and
master2 can refer to master3 and so on.
-- bruce (sqlwork.com)
>> Hi
>>
[quoted text clipped - 31 lines]
> I appreciate the help, though. At least I know it CAN be done, and I
> can keep on trying.
daveh551 - 21 Jul 2008 16:08 GMT
> the trick to remember is that master pages are just control on a page
> that refers to them (they do not contain pages). so a page can refer to
[quoted text clipped - 38 lines]
> > I appreciate the help, though. At least I know it CAN be done, and I
> > can keep on trying.
Well, I did finally get this to work. Just for anyone following this
thread:
I did an "Add New Item", selecting WebForm, and told it to use the
MasterPage Master.master. But I changes the name from SubMaster.aspx
to SubMaster.master
Then I went into SubMaster.master and changed the "Page" directive at
the top to "Master", and went into SubMaster.Master.cs and changed the
class that it inherits form System.Web.UI.Page to
System.Web.UI.MasterPage.
From there on, it pretty much seems to work as expected.