There are 2 ways to achieve this with masterpages.
1. Have nested master-pages (one within another). You can choose the correct
master page to suit your needs then. The bad part about this is that you
won't have any designer support on this.
2. Have multiple contentplaceholder's in the same master page. That way, at
every page you can have complete control on what goes into the content, and
what gets inherited from the masterpage.
Having mutiple masterpages, for one page is kind of a bad way to program for
uniform look and feel. I suggest in your case, you may as well use multiple
contentplaceholder's in the same masterpage.
Regarding the advantage of masterpages over user-controls, well...all i
know/can say about masterpages is that its optimized , since its a part of
the framework. In the past, I have created the master-page as a usercontrol
(in asp.net 1.1), and the drawback in my code was that for some reason, it
took longer to render each time, and there was less of
programmer-friendliness.
Hope that helps,
--
Sashidhar Kokku
ikaSystems Corp
"Greg" wrote:
> On Mar 26, 11:28 am, "Mark Rae" <m...@markNOSPAMrae.com> wrote:
> > "Greg" <spammesil...@yahoo.co.uk> wrote in message
> >
> > news: ups.com...
> >
> > > I'm from a winforms background, so a lot of the concepts are quite new
> > > to me - I'd appreciate any feedback on this.
> >
> > Sounds like a prime candidate for MasterPages:http://www.google.co.uk/search?sourc...F-8&rls=GGLG,G...
> >
> > In a nutshell, MasterPages allow the main "look and feel" of a web app to be
> > written once only (in the MasterPage itself), and then indivual content
> > pages to be created which contain the bits which are different...
> >
> > Prior to ASP.NET v2, this sort of functionality was commonly achieved with
> > user controls e.g. a user control for the header, a user control for the
> > menu, another for the sidebar, maybe another for the footer etc. References
> > to these controls needed to be added to each aspx page that required them.
> >
> > MasterPages do away with all that. Once the MasterPage is created, simply
> > create a new content page and set its MasterPage property - job done.
>
> Thanks Mark.
>
> Under the given circumstances, what advantage would a master page have
> over a user control?
>
> The control that is different in the 3 pages is half way down the
> page. Would it be necessary to have 2 master pages - i.e. one for the
> top half of controls, and one for the bottom half, and the control
> that is to be different in between?
>
> Regards,
>
> Greg.
>
>
>
>