1

我的母版页中出现内容控件错误。我没有打开任何标签,但仍然收到此错误。有人可以查看我的代码并指出我的错误以进行更正吗?有人可以通过这个例子解释我的错误吗?

<%@ Master Language="C#" MasterPageFile="~/Data.master" AutoEventWireup="true"      CodeFile="IMS.master.cs" Inherits="ims_IMS" %>
<%@ MasterType VirtualPath="~/AData.master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contenttop" Runat="Server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="content" Runat="Server">
<div id="section-header" class="clear">
<h2 id="section-title">IMS </h2>
</div>
<de:PageSecurity ID="ps1" runat="server" ContentControlId="contentwrapper" AllowdeStaff="True" AllowTechss="False" AllowPeoples="False" AllowDistrict="True" ErrorMessage="You cannot access this page." />
<div id="section-content">
        <asp:ContentPlaceHolder ID="sectioncontent" Runat="Server">
        </asp:ContentPlaceHolder>
    </div>
</asp:Content>
4

2 回答 2

0

我建议您从内部删除所有内容<asp:Content ID="Content3",看看是否仍然出现错误。

/>另外,尝试使用而不是结束您的自定义控件/de>

于 2013-06-07T15:25:47.153 回答
0
<asp:scriptmanager id="ScriptManager1" runat="server" xmlns:asp="#unknown"></asp:scriptmanager>

<asp:button id="Button1" runat="server" onclick="Button1_Click" text="Button" xmlns:asp="#unknown" />

<rsweb:reportviewer id="ReportViewer2" runat="server" height="261px" width="476px" xmlns:rsweb="#unknown"></rsweb:reportviewer>
于 2020-05-10T13:10:42.160 回答