简体   繁体   中英

button click event on update panel not firing in multiple user control

I am having an update panel which user control in it

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
   <ContentTemplate>
         <uc1:SelectionAjax ID="SelectionAjax1" runat="server" />
         <ppmp:PinPadModal ID="ppmodal" runat="server" />
   </ContentTemplate>
 </asp:UpdatePanel>

and inside this user control I am calling another two user controls each user control which has its own update panel

// First User Control
    <asp:UpdatePanel ID="UpP1" runat="server" ChildrenAsTriggers="true" UpdateMode="Conditional">
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="btnFinalConfirmation" EventName="Click" /> 
            </Triggers>
       <ContentTemplate>
         <asp:Button ID="btnFinalConfirmation" runat="server" Text="Confirm"  OnClick="btnFinalConfirmation_Click1" />
       </ContentTemplate>
     </asp:UpdatePanel>

//Second User Control
        <asp:UpdatePanel ID="UpPanel1" runat="server" ChildrenAsTriggers="true" UpdateMode="Conditional">
           <ContentTemplate>
             <asp:Button ID="btnConfirmation" runat="server" Text="Confirm"  OnClick="btnConfirmation_Click1" />
           </ContentTemplate>
         </asp:UpdatePanel>

The issue is that button click event is only being fired on the second user control not the first one how should I solve this

在您的Aspx页面中包含ScriptManager 。此ScriptManager控件在启用AJAX的网页中提供对客户端AJAX功能的支持。

<asp:ScriptManager ID="ScriptManager1" runat="server"/>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM