Why does the child control of the child update panel update both the parent and the child, if each of them is set to conditional?

We have a structure that has 3 main UpdatePanels, each of which has several nested UpdatePanels (but only one level of nesting.) All panels are set to a conditional value with the ChildrenAsTriggers parameter set to false, so it looks something like this:

<asp:UpdatePanel ChildrenAsTriggers="false" OnLoad="Update_OnLoad" 
    ID="updateCol2" UpdateMode="Conditional" runat="server">
    <ContentTemplate>
        <asp:UpdatePanel ChildrenAsTriggers="false" UpdateMode="Conditional" 
            ID="updateFeed" runat="server">
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="btnSubmit" EventName="Click" />
            </Triggers>
            <ContentTemplate>
                <asp:Button OnClick="function" ID="btnSubmit" runat="server" />
            <ContentTemplate>
         </asp:UpdatePanel>
    </ContentTemplate>
</asp:UpdatePanel>

, OnLoad , , OnClick , . , UpdatePanel IS , ( .)

+3
2

, ?

, OnLoad ,

, , , . , , , Load Init. , .

, UpdatePanel , .

, UpdatePanels, ASP.NET Ajax.

+2

pschorf ( , ), ?

, .

:

<UPanel1 ChildrenAsTriggers="false" UpdateMode="Conditional">    
 <UPanel2 ChildrenAsTriggers="false" UpdateMode="Conditional">    
   <asp:Button onclick="..." />    
 </UPanel2>    
 Other UPanel1 content not being refreshed after the UPanel2 button click
</UPanel1>

! (, womp , )

0

Source: https://habr.com/ru/post/1713461/


All Articles