ASP.NET updatepanel : updatemode conditional malfunction
I've got a weird problem:
On a page, i开发者_运维知识库've 2 updatepanels in conditional updatemode, with childrenastrigger set to true (default value).
A click on a IPostBackEventHandler control inside either the first or second updatepanel causes the 2 updatepanels to refresh.
This is not the expected behavior. Any Idea?
Verify that both update panels don't have <Triggers>
set for the same control. If they do, then yes, both will update when the control posts back.
Edit: I noticed my original post stripped the < >
!
ALSO, verify that in your server-side code, you are not manually triggering an update() on both panels, or even a refresh on the original page.
Thanks for replying,
As often, it finally was a parameter problem:
A team worker had forgot to set the AssociatedUpdatePanelID property of an other updatepanel. So it seems like this updatepanel was refreshing too.
Moreover, i forgot that on a asyncpostback, all the controls in the page were recreated (even those inside an updatepanel), but not rendered.
It can be disturbing when debugging...
精彩评论