Re: Master pages - organising layout - contentplaceholder confusion
- From: "clintonG" <csgallagher@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 2 Jun 2006 16:19:12 -0600
I'd say the "short story" explains what -- not to -- put into a
ContentPlaeHolder and that would be anything except the head, body or form
elements. Just think of content pages as if they were #included as the same
principles apply.
<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/
"Cowboy (Gregory A. Beamer)" <NoSpamMgbworld@xxxxxxxxxxxxxxxxxx> wrote in
message news:ur5gMvjhGHA.4252@xxxxxxxxxxxxxxxxxxxxxxx
The master page has content holders <asp:ContentHolder>. The page itself
has <asp:Content>. What you decide to put in the content tags is your own
decision. I have seen people put tables directly or even use Panels, which
render as <SPAN> tags. This example, amitedly older, uses a table:
http://msdn2.microsoft.com/en-us/library/zhhddkxy.aspx
Admitedly an older article, but it should still work.
The DIV, to me, is the most useful if you are using CSS, which you should
be as it allows you to change things without major editing. If you want to
organize with tables, instead, it is an option, but it locks up your
display and forces a complete redesign to change things. If you want to
see the value of DIVs with CSS, check out:
http://www.csszengarden.com/
Look at the HTML and CSS file separately and you will see the entire
layout is done with CSS. The downside is you may end up with a mixed bag,
as your master page is probably built with tables and your content with
CSS, which can be confusing. :-)
I generally design my sites with PhotoShop (or another graphics program -
Expression Graphic Designer, in beta, is free for now; Paint.NET is also
free, but has fewer options and is difficult for me as a design tool.) I
then lay out a complete page, including common elements, using CSS (static
version). I then apply the common elements to a master page (DWT in non
ASP.NET 2.0 sites) and the rest to content areas. It works rather nicely.
You have to decide how much time you wish to invest in learning these
skills.
Short story: Put what you want in the content tag, but the DIV is a good
container object, esp. if you use CSS.
--
Gregory A. Beamer
*************************************************
Think Outside the Box!
*************************************************
"kd" <kdfake@xxxxxxxx> wrote in message
news:447f972d$0$12313$ec3e2dad@xxxxxxxxxxxxxxxxxxxxxxxxx
Thanks!
What else can i use besides DIV?
--
--------------------------------- --- -- -
Posted with NewsLeecher v3.5 Final
Web @ http://www.newsleecher.com/?usenet
------------------- ----- ---- -- -
.
- References:
- Re: Master pages - organising layout - contentplaceholder confusion
- From: Cowboy \(Gregory A. Beamer\)
- Re: Master pages - organising layout - contentplaceholder confusion
- From: kdfake@xxxxxxxx
- Re: Master pages - organising layout - contentplaceholder confusion
- From: Cowboy \(Gregory A. Beamer\)
- Re: Master pages - organising layout - contentplaceholder confusion
- Prev by Date: Re: Hide pagename
- Next by Date: Re: Closing window and Clearing the session
- Previous by thread: Re: Master pages - organising layout - contentplaceholder confusion
- Next by thread: Re: datetime convert experts...help wanted
- Index(es):
Relevant Pages
|