Re: master pages - is it just me not comfortable with them?



A common confusion about master pages is that they are thought of as a sort
of iframes rather than a sort of user controls. They are a sort of extension
of user control concept in a very convenient form.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


<oliharvey@xxxxxxxxxxxxxx> wrote in message
news:531bdcdb-a1d7-4c38-b607-18c0c38c8836@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

I'm an experienced web developer - but haven't used master pages much.

I find that I'm not really comfortable with them - so perhaps I'm
missing something.....

When I first read about them I was shocked that the content
placeholder pages need knowledge of which master page they were in -
I'm happier now I understand they can be set dynamically - but I still
can't help thinking that they provide nothing on top of a reasonable
page/usercontrol design ....

...in fact I prefer a design where there's only ever *one* aspx page
per site - and everything else is written as UserControls (probably
loaded dynamically with LoadControl)... this gives nice
componentisation and ultimate flexibility.

I tend to work in Enterprise environments.

...I'd appreciate any comments on this.

thanks,
O.


.



Relevant Pages

  • Re: JavaScript From PageLoad()?
    ... embedds the script in the resulting html which is ugly. ... He works with master page and wants to use/call javascript function from ... For the sites I build with ASP.NET I take advantage of Master Pages ... have User Controls for the navigation and footer areas. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Viewing a .wmv in OS9?
    ... Tankers), is a Yacht Master so well traveled, was on ... intelligent people struggle with computers (of any sort) even if they have ... assisted in the project of building a kit car. ... driving practice and she questioned "which way" when it was ...
    (uk.comp.sys.mac)
  • User control communication within Master page
    ... Master page, or with a user control communicating with the Master ... The aspx pages have a function in them to set ... Neither of these user controls ... private void Something_Click ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: JavaScript From PageLoad()?
    ... If I out it into the Masterpage html, ... embedds the script in the resulting html which is ugly. ... For the sites I build with ASP.NET I take advantage of Master Pages ... have User Controls for the navigation and footer areas. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Web form inheritance?
    ... I am not sure if Master Pages will fit the ... aggregate these user controls into each page. ... ASP.NET 2.0 has naturally support visual inheritance through the ... Master page is somewhat like a page template where we ...
    (microsoft.public.dotnet.framework.aspnet)