Site.Master
<%@ Master Language="C#" Inherits="System.Web.Mvc.ViewMasterPage" %>
<body>
<asp:ContentPlaceHolder ID="Menu" runat="server">
<!-- Menu goes here -->
</asp:ContentPlaceHolder>
</body>
副主
<%@ Master Language="C#" MasterPageFile="~/Views/Shared/Site.Master" %>
<asp:Content ID="Content4" ContentPlaceHolderID="Menu" runat= "server">
<% Html.RenderPartial("MainMenu"); %>
</asp:Content>
这是应用程序运行时的错误: 当前上下文中不存在名称“Html”