View Single Post
  #2 (permalink)  
Old August 6th, 2009, 02:48 PM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 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!
Reply With Quote