I'm finally getting the hang of master pages. I'm sure nobody's noticed, but all of the webpages on this site used to be static html pages. They're now all linked to a master page and written in C#. To get a better grip of the concept, I went to this article at ASP.NET and followed the example article here. ASP.NET is always a great resource for beginner and, I assume intermediate/expert programmers.
The part I was specifically having trouble with was that I was adding all of my "wrapper" content into the div content tag.
Whoops. I now realize that the only thing I have inside of the div content tag is the text you're reading in these few short paragraphs.
The part I was specifically having trouble with was that I was adding all of my "wrapper" content into the div content tag.
div id="content">
<asp:contentplaceholder id="MainContent" runat="server">
<!-- Page-specific content will go here... --> </asp:contentplaceholder> </div>
<asp:contentplaceholder id="MainContent" runat="server">
<!-- Page-specific content will go here... --> </asp:contentplaceholder> </div>
Whoops. I now realize that the only thing I have inside of the div content tag is the text you're reading in these few short paragraphs.
Recent Entries
- Master Pages 02 Sep 2007
- First Steps 12 Dec 2006
- Inspiration 12 Dec 2006