Simple question, ok a contentplaceholder is implemented for Page-specific content.
What about header region, advertisment, recommended books, footer etc
1- What do you insert this as?
2- how do you adjust the size the way you want it?
Simple question, ok a contentplaceholder is implemented for Page-specific content.
What about header region, advertisment, recommended books, footer etc
1- What do you insert this as?
2- how do you adjust the size the way you want it?
A Master Page with this layout would have only one ContentPlaceholder. The other parts you show are part of the Master Page, and they are handled by code of that page.
The pages which use this as their Master have only a ContentPlaceholder control, everything they do goes in there.
You can have multiple ContentPlaceholders. For example, on a recent project I had one on the left (for navigation) and one in the middle (for content). But your design seems not to need that.
Since this all turns into HTML in the end (the ContentPlaceholder is just a div
), the size of the sections can be set by the Master Page or change on the fly. The page, for example, could tell the Master "no advertisements section on this page".
You can have multiple ContentPlaceholder controls on your master page if you have unique content to display based off of the page you are rendering. Just give each ContentPlaceholder a unique ID.
See MSDN for more information.
You can control the layout and size of each ContentPlaceholder with CSS or in-line styling.