微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

c# – ‘该页面包含需要母版页引用的控件,但没有指定’问题’

我得到这个输出

即使我的页面包含MasterPageFile =“〜/ Site1.Master”

这是我的页面的源代码

<%@ Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="Projekt.NET.WebForm2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<title>gowno</title>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
hahahahahahaa
</asp:Content>

解决方法

由’ProfK’自我控制

<%@ Page Language =“C#”'指令缺少单词Page' Master Page Error on New MVC Project

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐