asp.net - Why would a child control of a child update panel update both parent and child if each is set to conditional? -


We have a structure that has 3 main update panels, each of which is the nested update panel (but only one of the nesting victims Level.) All panels are conditionally set with childastridge, so it looks almost identical:

  & lt; ASP: Update panel kids aggregator = "wrong" onload = "update_office" id = "update call 2" updatemod = "conditional" runat = "server" & gt; & Lt; ContentTemplate & gt; & Lt; ASP: UpdatePanel ChildrenArchiger = "Incorrect" updatemode = "conditional" id = "updatedFeedd" runat = "server" & gt; & Lt; Trigger & gt; & Lt; Asp: AsyncPostBackTrigger ControlID = "btnSubmit" EventName = "click" / & gt; & Lt; / Trigger & gt; & Lt; ContentTemplate & gt; & Lt; ASP: Button onclic = "Function" id = "BTN submit" runat = "server" /> & Lt; ContentTemplate & gt; & Lt; / ASP: UpdatePanel & gt; & Lt; / ContentTemplate & gt; & Lt; / ASP: UpdatePanel & gt;  

I expected that the onload function of the original update panel would never run except for the actual page load, and that the onclick function of the button will be executed on every click, the child update panel Updating. However, parents UpdatePanel is updated on every click of the button, and the child update panel is activated only later (as a result of updates to the Parents Update Panel).

Is the original update panel actually updating, i.e. the content is changing?

I would expect that the onload function of the original update panel will never run except for the actual page load

This is a false but unfortunately normal Is the impression. Remember that even though this is an incompatible postback, the entire page and control life cycle for control in full control is implemented for all controls, including loads and inserts. It's okay as you were usually requesting the page.

The difference is that this is only the area of ​​UpdatePanel which will be updated, not the complete UI.

For more information about how updates panels work.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -