Bob Smith
Bob Smith

Reputation: 349

Why does the updatepanels reload controls outside the updatepanel

I have several UpdatePanels on a page and they have been set with a mode of Conditional. I see a flicker in the controls outside of the UpdatePanels when there is an event that occurs within the UpdatePanel (Say a button click).

The page doesn't post back but the user experiences a "Flicker".

Any idea what might be going on here?

Upvotes: 0

Views: 1053

Answers (3)

HectorMac
HectorMac

Reputation: 6143

You don't say what the callback inside the UpdatePanel is doing.

If it is updating the contents of the panel itself, it could be be the browser is simply repainting the entire page layout to account for the new content just as it would if you resized the browser window.

Upvotes: 0

Ricardo G
Ricardo G

Reputation:

Do you have event handlers for controls inside the UpdatePanels that make updates to controls outside of the UpdatePanels?

You could try selectively commenting event handlers until it stops flickering to find the culprit.

I also found Firebug to be useful in these cases - you can see the exact HTML going into the updated regions.

Upvotes: 0

oscarkuo
oscarkuo

Reputation: 10453

I think you might have got the UpdateMode wrong. By default it is 'Always' if you change it to 'Conditional' it should fix your problem

Upvotes: 1

Related Questions