Link to home
Start Free TrialLog in
Avatar of dba123
dba123

asked on

Page has one or more <asp:Content> controls that do not correspond with <asp:ContentPlaceHolder> controls in the Master Page

I'm posting this in VS 2008 forum since I wasn't getting this error when this was in VS 2005.  It's complaining about my content tags but I have not a clue why, everything looks fine to me.  I've included the master page so what's the deal?


 

<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Sub.master.cs" Inherits="Web.MasterPages.Sub" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title id="Title" runat="server" />
    <link id="main_styles" href="~/main.css" rel="stylesheet" type="text/css" />
<style type="text/css">


body {
      background-image: url(images/back.jpg);
}

.style1 {color: #B92722}

#bigImg {
  position: absolute;
  display: none;
}


</style>
</head>
<body class="Mainbody">
    <form id="form1" runat="server">
        <!-- Main Table -->
        <div class="centered-table">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td>
                    <!-- HomePage Main Table -->
                   
                    <table width="758" border="0" cellpadding="0" cellspacing="0" class="bg">
                        <tr>
                            <td colspan="8"><asp:Image ID="Image3" ImageUrl="/images/index_01.jpg" width="330" height="121" runat="server" /><asp:Image ID="Image4" ImageUrl="/images/sub2_02.jpg" width="332" height="121" runat="server" /><asp:Image ID="Image7" ImageUrl="/images/sub2_03.jpg" width="288" height="121" runat="server" /></td>
                        </tr>
                        <tr>
                            <td>
                                <table border="0" cellpadding="0" cellspacing="0" class="bg">
                                    <tr>
                                        <td width="102" valign="top" style="background-image: url(images/white.gif); background-position: right top; background-repeat: repeat-y;" align="left"><asp:Image ID="Image1" ImageUrl="/images/sub2_04.jpg" width="102" height="281" runat="server" /><asp:Image ID="Image2" ImageUrl="/images/sub2_07.jpg" width="102" height="385" runat="server" /></td>
                                        <td colspan="4" valign="top" align="left">
                                            <table width="758" border="0" cellpadding="0" cellspacing="0" id="Table_01">
                                                <tr>
                                                    <td colspan="2"><asp:Image ID="Image5" ImageUrl="/images/inside_01.jpg" width="320" height="138" runat="server" /></td>
                                                    <td><asp:Image ID="Image6" ImageUrl="/images/inside_02_new.jpg" width="437" height="138" runat="server" /></td>
                                                </tr>
                                                <tr>
                                                    <td colspan="5" valign="top">
                                                        <table border="0" cellpadding="0" cellspacing="0" class="bg">
                                                            <tr>
                                                                <td valign="top">
                                                                    <table border="0" cellpadding="0" cellspacing="0" bgcolor="#153764">
                                                                        <tr>
                                                                            <td rowspan="7" valign="top" background="images/left_back.gif" bgcolor="#FFFDDA" class="screen"><img src="images/back_03.jpg" width="129" height="211" alt=""></td>
                                                                            <td rowspan="7" valign="top" bgcolor="#FFFDDA">
                                                                                  <a href="history.aspx" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image17','','images/inside_04_over.jpg',1)"><asp:Image ID="Image16" ImageUrl="/images/inside_04_new.jpg" width="126" height="34" runat="server" /><br>
                                                                                  <a href="menu.aspx" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image18','','images/inside_07_over.jpg',1)"><asp:Image ID="Image17" ImageUrl="/images/inside_07_new.jpg" width="126" height="22" runat="server" /><br>
                                                                                     <a href="catering.aspx" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image19','','images/inside_08_over.jpg',1)"><asp:Image ID="Image18" ImageUrl="/images/inside_08_new.jpg" width="126" height="21" runat="server" /><br>
                                                                                     <a href="locations.aspx" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image20','','images/inside_09_over.jpg',1)"><asp:Image ID="Image19" ImageUrl="/images/inside_09_new.jpg" width="126" height="21" runat="server" /><br>
                                                                                    <a href="bar.aspx" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image21','','images/inside_12_over.jpg',1)"><asp:Image ID="Image20" ImageUrl="/images/inside_12_new.jpg" width="126" height="21" runat="server" /><br>
                                                                                     <a href="rewards.aspx" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image22','','images/inside_13_over.jpg',1)"><asp:Image ID="Image21" ImageUrl="/images/inside_13_new.jpg" width="126" height="20" runat="server" /><br>
                                                                                     <a href="~cart/default.aspx" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image23','','images/inside_10_over.jpg',1)"><asp:Image ID="Image22" ImageUrl="/images/inside_10_new.jpg" width="126" height="22" runat="server" /><br>
                                                                                     <a href="contact.aspx" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image24','','images/inside_11_over.jpg',1)"><asp:Image ID="Image23" ImageUrl="/images/inside_11_new.jpg" width="126" height="30" runat="server" /><br><asp:Image ID="Image24" ImageUrl="/images/back_13.jpg" width="126" height="20" runat="server" /></td>
                                                                            <td rowspan="7" valign="top" bgcolor="#FFFDDA" class="screen"><img src="images/back_05.jpg" width="65" height="211" alt=""></td>
                                                                            <td width="438" background="images/right_back.gif" align="center">
                                                                                <table>
                                                                                    <asp:ContentPlaceHolder id="ContentPlaceHolder_TopRight" runat="server" />
                                                                                </table>
                                                                            </td>
                                                                        </tr>
                                                                       <tr>
                                                                            <td height="47" rowspan="5" valign="top" background="images/right_back.gif" style="padding: 10px 40px 10px 15px;"></td>
                                                                       </tr>
                                                                    </table>
                                                                </td>
                                                            </tr>
                                                             <tr>
                                                                <td colspan="2" class="white"><asp:Image ID="Image15" ImageUrl="/images/back_14.gif" width="757" height="2" runat="server" /></td>
                                                             </tr>
                                                            <tr>
                                                                <td>
                                                                    <table border="0" cellpadding="0" cellspacing="0">
                                                                        <asp:ContentPlaceHolder id="ContentPlaceHolder_MainBody" runat="server" />              
                                                                    </table>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                                <tr valign="bottom">
                                                    <td colspan="4"><asp:Image ID="Image10" ImageUrl="/images/back_17.jpg" width="320" height="34" runat="server" /><asp:Image ID="Image11" ImageUrl="/images/back_18.jpg" width="438" height="34" runat="server" /></td>
                                                </tr>  
                                            </table>
                                        </td>
                                        <td valign="top" align="left"><asp:Image ID="Image9" ImageUrl="/images/sub2_06.jpg" width="90" height="281" runat="server" /><br><asp:Image ID="Image8" ImageUrl="/images/sub2_08.jpg" width="90" height="385" runat="server" /></td>
                                    </tr>
                                    <tr>
                                        <td width="102" align="right" valign="top"><asp:Image ID="Image12" ImageUrl="/images/white.gif" width="9" height="7" runat="server" /></td>
                                        <td colspan="4" align="left">
                                            <table border="0" cellpadding="0" cellspacing="0" class="bg">
                                                <tr>
                                                    <td>
                                                        <asp:Image ID="Image13" ImageUrl="/images/footer.gif" width="758" height="40" runat="server" />
                                                        <div id="Layer1" style="position:relative; left:645px; top:-155px; width:158px; height:201px; z-index:1">
                                                            <asp:Image ID="Image14" ImageUrl="/images/cactus.gif" width="158" height="201" runat="server" />
                                                        </div>
                                                    </td>
                                                </tr>
                                           </table>
                                        </td>
                                        <td width="90"> </td>
                                    </tr>  
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        </div>
    </form>
</body>
</html>
 
<%@ Page Language="C#" MasterPageFile="~/MasterPages/Sub.Master" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="Web.Login" %>


<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder_TopRight" runat="Server">
    <tr>
        <td colspan="2">
            <table border="0" cellpadding="0" cellspacing="0" >
               
            </table>
        </td>
    </tr>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder_MainBody" runat="Server">
    <tr>
        <td colspan="2">
            <table border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td>
                        <table border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td><asp:Label ID="lblRegister" runat="server" Text="Label" /></td>
                            </tr>
                            <tr>
                                <td>If you do not have a login, please register here using our quick registration form:
                                    <asp:ImageButton ID="btnRegister" runat="server" />
                                </td>
                            </tr>
                            <tr>
                            <td><asp:Label ID="lblLoginFormHeader" runat="server" Text="Label" /></td>
                            </tr>
                            <tr>
                                <td>
                                    <table border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td><asp:Label ID="lblUserName" runat="server" /></td>
                                        <td><asp:TextBox ID="txtUserName" runat="server" /></td>
                                    </tr>
                                    <tr>
                                        <td><asp:Label ID="lblPassword" runat="server" /></td>
                                        <td><asp:TextBox ID="txtPassword" runat="server" /></td>
                                    </tr>
                                    <tr>
                                        <td><asp:Button ID="lblForgotLogin" runat="server" /><asp:HyperLink ID="hypForgotLogin" runat="server" /></td>
                                    </tr>
                                   
                                    <!-- Forgot UserName or Password Form -->
                                    <asp:Panel ID="pnlForgotLoginForm" runat="server">
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblRetrieveEmailAddress" runat="server" Text="Label" /><asp:TextBox ID="txtRetrieveEmailAddress" runat="server" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Button ID="lblButtonSendLogin" runat="server" Text="Button" />
                                        </td>
                                    </tr>
                                    </asp:Panel>
                                   
                                    <!-- Hide Login Button if they click on ForgotUserName or ForgotPassword -->
                                    <asp:Panel ID="pnlLoginButton" runat="server">
                                    <tr>
                                        <td><asp:Button ID="btnLogin" runat="server" /></td>
                                    </tr>
                                    </asp:Panel>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</asp:Content>
ASKER CERTIFIED SOLUTION
Avatar of Sammy
Sammy
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
dba123, FYI VS.Net 2008 was released Monday and this issue lots of other issues were fixed.