无法在母版页“/SetLeftMenu.master”中找到 ContentPlaceHolder“ContentPlaceHolder1”,请验证内容页中内容控件的 ContentPlaceHolderID 属性。 
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 代码如下:MasterPage.master——母板页
 
<%@ 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">
    <title>后台管理系统</title>
</head><body>
......
</body>
</html>
SetLeftMenu.master——嵌套的母板页<%@ Master Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true"
    CodeBehind="SetLeftMenu.master.cs" Inherits="MasterPage" %><asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="leftMenu">
        <ul>
            <li id="" title="系统设置">系统设置</li>
            <li id="" title="短信接口">短信接口</li>
            <li id="" title="短信记录">短信记录</li>
            <li id="" title="短信模板">短信模板</li>
            <li id="" title="邮件接口">邮件接口</li>
            <li id="" title="系统设置">帮助中心</li>
        </ul>
    </div>
</asp:Content>
SystemSet.aspx<%@ Page Title="" Language="C#" MasterPageFile="~/SetLeftMenu.Master" AutoEventWireup="true" CodeBehind="SystemSet.aspx.cs" Inherits="MasterPage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div id="leftMenu">
<ul>
</ul>
</div>
<div id="center">
<div id="welcome" class="content" style="display:block;">
  <div align="center">
    <p>&nbsp;</p>
    <p><strong>欢迎进行系统管理!</strong></p>
    <p>&nbsp;</p>
    </div>
</div>
</div>
</asp:Content>

解决方案 »

  1.   

    MasterPage.master——母板页 改为:
     <%@ 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">
        <title>后台管理系统</title>
    </head><body>
    <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
     </asp:Content></body>
    </html>
      

  2.   

    无法在母版页“/SetLeftMenu.master”中找到 ContentPlaceHolder“ContentPlaceHolder1”,请验证内容页中内容控件的 ContentPlaceHolderID 属性。
    母版页添加 Content 
      

  3.   

    模板页<body>中有<div id="content">
            <asp:ContentPlaceHolder ID="ContentPlaceHolder1"  runat="server">
            </asp:ContentPlaceHolder>
        </div>
      

  4.   

     <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
      </asp:ContentPlaceHolder>你的模板页里面没有添加这个,那肯定是会出问题啦。