views:

257

answers:

2

I have rather a complex UI page with several UpdatePanels nested. All of them are set to UpdateMode = "Conditional"

I have a listbox outside all the updatepanels. It's strange how there's a flicker on these listboxes when any buttons within the UpdatePanels are clicked.

My understanding was if the mode is conditional, this should not be happening.

Any ideas on where to start troubleshooting?

+1  A: 

I'm not sure, but the browser might be doing this when it's re-rendering things within the other UpdatePanels. I wonder if you put everything inside a "global" UpdatePanel if this behavior will stop.

Andy White
I tried that with no luck :(
DotnetDude
+2  A: 

On the parent UpdatePanels, set the ChildrenAsTriggers property to False and also look at using the Triggers element of the UpdatePanels you want to update to specify your triggers explicitly.

<asp:UpdatePanel ID="myUpdatePanel" runat="server" ChildrenAsTriggers="false" UpdateMode="Conditional">
        <ContentTemplate>

        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="btnTrigger" />
        </Triggers>
    </asp:UpdatePanel>
Lance Harper