<asp:Content ID="Content2" ContentPlaceHolderID="CPH_MainContent" runat="server"></asp:Content>
cs页面无法获取ID="Content2",想在<asp:Content>控件中间添加内容,可以加一个占位符控件<asp:Literal>
结果:
<asp:Content ID="Content2" ContentPlaceHolderID="CPH_MainContent" runat="server"> <asp:Literal ID="lNoticeContent" runat="server"></asp:Literal> </asp:Content>
时间: 2024-12-27 03:39:42