1
Reply

Master Page Error

Vignesh Kumar

Vignesh Kumar

Oct 23 2013 3:50 AM
1k
Hi,

I am trying to use this master page in some aspx page and get this error.

"The page contains markup that is not valid when attached to a masterpage"

<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Menu.master.cs" Inherits="ChronicApps.UI.Menu" %>

<!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>
        <asp:ContentPlaceHolder ID="pagetitle" runat="server">
        </asp:ContentPlaceHolder>
    </title>
    <asp:ContentPlaceHolder ID="head" runat="server">
        <link href="Styles/HomeStyle.css" rel="stylesheet" type="text/css" />
    </asp:ContentPlaceHolder>
</head>
<body>
    <form id="form1" runat="server">
    <div id="divHeader">
        <table width="100%">
            <tbody>
                <tr>
                    <td style="width: 5%;">
                    </td>
                    <td>
                        <nobr><img style="border-width: 0px; width: 200px; height: 50px;" id="Img1"
                            alt="no pic" src="Images/metlife.png"/></nobr>
                    </td>
                    <td>
                    </td>
                    <td valign="middle">
                        <nobr>
                            <font color="red">
                                <marquee style="width: 500px; font-size: 9pt; font-weight: bold;" id="mqNotice" behavior="scroll" scrollDelay="100"></marquee>
                            </font>
                    </nobr>
                    </td>
                    <td class="welcomeMessage" align="right">
                        <img style="border-width: 0px; width: 96px; height: 80px;" id="Image1" alt="no pic"
                            src="Images/tech.png" />
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    <br />
    <div id="navigation" style="background: url(images/blue.png) no-repeat left top;">
        <ul>
            <li><a></a></li>
            <li>
                <asp:LinkButton ID="LinkButton2" runat="server" Style="font-weight: bold; text-decoration: none;
                    height: 20px;" OnClick="Monthly">Monthly Dashboard</asp:LinkButton>
            </li>
            <li class="menuDiv"></li>
            <li>
                <asp:LinkButton runat="server" Style="font-weight: bold; text-decoration: none; height: 20px;"
                    ID="LinkButton1" OnClick="Quaterly" Text="Executive Dashboard"></asp:LinkButton>
            </li>
            <li class="menuDiv"></li>
            <li>
                <asp:LinkButton runat="server" Style="font-weight: bold; text-decoration: none; height: 20px;"
                    ID="LinkButton3" OnClick="admin0">Application Profile</asp:LinkButton>
            </li>
            <li class="menuDiv"></li>
            <li>
                <asp:LinkButton runat="server" Style="font-weight: bold; text-decoration: none; height: 20px;"
                    ID="LinkButton4" OnClick="adhoc">Adhoc Slides</asp:LinkButton>
            </li>
        </ul>
        <ul style="padding-top: 2px; float: right;">
            <li id="active">
                <asp:LinkButton runat="server" Style="font-weight: bold; text-decoration: none; height: 20px;"
                    ID="btnSignOut0" OnClick="admin">ADMIN</asp:LinkButton>
            </li>
        </ul>
    </div>
    <div>
        <asp:ContentPlaceHolder ID="bodycontent" runat="server">
        </asp:ContentPlaceHolder>
    </div>
    </form>
</body>
</html>

Any suggestions pls?


Answers (1)