I am just creating a new MVC project and havenβt changed anything, but when I try to view the ChangePasswordSuccess view in design mode, I get an error:
The page has controls that require a Master Page reference, but none is supplied.
There are no controls on the page except the content control and the literal, and it has a link to the main page. Does anyone know what?
<%@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>
source share