这是我的 ASPX 文件
<%@ Page Title="Extra Virgin Olive Oil From Argos" Language="VB" MasterPageFile="~/Production.master"
AutoEventWireup="false" CodeFile="acova.aspx.vb" Inherits="pages_products_evoo_acova" %>
<asp:Content ContentPlaceHolderID="head2" runat="server" ID="Contnet0">
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-32158435-1']);
_gaq.push(['_trackPageview']);
(function () {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</asp:Content>
<asp:Content ContentPlaceHolderID="LeftHolder2" runat="server" ID="Content2">
<%= IO.File.ReadAllText(Server.MapPath("../../../pages/announce/AdSense01.htm"))%>
</asp:Content>
<asp:Content ContentPlaceHolderID="RightHolder2" runat="server" ID="Content3">
<%= IO.File.ReadAllText(Server.MapPath("../../../pages/announce/GoogleAdd.htm"))%>
</asp:Content>
<asp:Content ContentPlaceHolderID="ContentCenter" Runat="Server" ID="Content1">
<!-- START Code Here -->
<!-- <div id="Div1" class=" Style_Center" runat="server"> -->
<asp:Panel ID="Panel6" runat="server" class="PanelStyle3" ScrollBars="Vertical">
在这个位置, asp:Content... 和 asp:panel.... 产生错误
元素“不支持 ContentPlaceHolder
当我开始使用 Visual Studio 2010 时,这个错误并不是从一开始就出现的。我在几个月前就看到了,我没有注意,因为一切都很好。但现在非常嘈杂,我想消除。
这是在 MaterPage.master 文件下的 Production.Master 文件
<%@ Master Language="VB" MasterPageFile="~/MasterPage.master" %>
<asp:Content ContentPlaceHolderID="head" ID="Content0" runat="server">
<asp:ContentPlaceHolder EnableViewState="true" ID="head2" runat="server">
</asp:ContentPlaceHolder>
</asp:Content>
<asp:Content ContentPlaceHolderID="ButtonsPH" ID="Content1" runat="server">
<!-- Buttons -->
<div id="tabsF">
<h3>
<a id="A1" href="~/Default.aspx" runat="server" target='_parent'><span>Home</span></a>
</h3>
</div>
<!-- END Buttons -->
</asp:Content>
现在这里第一个内容它没有验证错误,但第二个给出了这个验证错误。左右持有人在 MaserPage.maser 文件中同样发生在 MasterPage.master 文件中