c# – ‘该页面包含需要母版页引用的控件,但没有指定’问题’
发布时间:2020-12-15 21:49:18 所属栏目:百科 来源:网络整理
导读:我得到这个输出: 即使我的页面包含MasterPageFile =“?/ Site1.Master” 这是我的页面的源代码: %@ Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="Projekt.NET.WebForm2" %asp:Content
我得到这个输出:
即使我的页面包含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 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |