<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>

<!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 runat="server">

<link rel="Stylesheet" href="style/style.css" />

    <title></title>
    <asp:ContentPlaceHolder id="head" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body>
    <form id="form1" runat="server">
   <div id="pageWrap">

   <div id="logo">

        <h1>Your Website</h1>

   </div><!-- logo -->

   <div id="nav">

        <ul>

            <li><a href="Default.aspx">Home</a></li>
            <li><a href="Default.aspx">Products</a></li>
            <li><a href="Default.aspx">Company</a></li>
            <li><a href="Default.aspx">FAQ</a></li>
            <li><a href="Default.aspx">About</a></li>
            <li><a href="Default.aspx">Contact</a></li>

        </ul>

   </div><!-- Nav -->

   <div class="clearBoth"></div>

   <div id="mainContent"></div><!-- mainContent -->

   </div><!-- pageWrap -->  
    </form>
</body>
</html>

and the error is:

Cannot find ContentPlaceHolder 'ContentPlaceHolder1' in the master page '/WebSite2/MasterPage.master', verify content control's ContentPlaceHolderID attribute in the content page.

Please help.Thanks

Related posts

Recent Viewed