0
我刚刚创建一个新的MVC项目,并已在所有不需要做任何改变,但是当我尝试查看在设计模式中ChangePasswordSuccess的看法,我得到的错误:母版页错误
The page has controls that require a Master Page reference, but none is supplied.
该页面除内容控件和文本文本外没有控件,并且它具有主页面引用。任何人都知道发生了什么?
<%@Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" CodeBehind="ChangePasswordSuccess.aspx.cs" Inherits="BasicMvcApp.Views.Account.ChangePasswordSuccess" %>
<asp:Content ID="changePasswordSuccessContent" ContentPlaceHolderID="MainContent" runat="server">
<h2>Change Password</h2>
<p>
Your password has been changed successfully.
</p>
</asp:Content>