当前位置: 代码迷 >> ASP.NET >> 跨母版页面中的Content的UpdatePanel失败解决办法
  详细解决方案

跨母版页面中的Content的UpdatePanel失败解决办法

热度:5671   发布时间:2013-02-25 00:00:00.0
跨母版页面中的Content的UpdatePanel失败
跨母版页面中的Content的UpdatePanel失败
<asp:Content ID="Content5" ContentPlaceHolderID="CphButTop" runat="server">
  <asp:Button ID="ButAdd" runat="server"></asp:Button>
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="CphMain" runat="server">
  <asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="false">
  <ContentTemplate>
  </ContentTemplate>
  <Triggers>
  <asp:AsyncPostBackTrigger ControlID="ButAdd" EventName="Click" />
  </Triggers>
  </asp:UpdatePanel>
</asp:Content>

这样就失败了,提示了找不到Id,可我不想把按钮和内容都放在一个区域中,不利于样式的控制,如何才能实现啊?

------解决方案--------------------------------------------------------
探讨
跨母版页面中的Content的UpdatePanel失败
<asp:Content ID="Content5" ContentPlaceHolderID="CphButTop" runat="server">
<asp:Button ID="ButAdd" runat="server"></asp:Button>
</asp:Content>
<asp:Content ID="Co……
  相关解决方案