View Single Post
  #2 (permalink)  
Old August 6th, 2009, 02:48 PM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

Hi Thomas,
Your first </asp:Content> has gone travelling. Take a look at this:

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<asp:Content ID="Content2" ContentPlaceHolderID="cpMainContent" Runat="Server">
Notice how Content1 is missing its closing tag. I wonder where it's gone?

Look down a bit and you find this:

<p>You can change your genre preferences <a href="~/MyProfile.aspx" runat="server">here</a></p>
</asp:Content> <!-- See this?? -->
<h1>Hi there visitor and welcome to Planet Wrox</h1>
Oh, there it is. Cut it from this location, and paste it after the first opening Content tag and you're good to go...

Hope this helps.

Imar Spaanjaars
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!