Friday, March 16, 2012

OMG please help. Parent UpdatePanel refreshing with nested UpdatePanel

Angry I have two update panels, lets call them A & B

B is nested inside A

B has a trigger registered to a timer so it updates every 30 seconds. A is updating too, why?

Both are set to conditional update, all other options are at default. Scriptmanager PartialPageRendering=true

Please help, I'm going insane.

Then a lesser worry for me, if you know,, how can I give a textbox located in A focus (cursor) after an update?

Set the ChildrenAsTriggers of UpdatePanel A to FALSE

Thanks


I did that and I'm still getting it.

Panel A's Page_load event also gets fired before B's. and the tmr is definitely registered only to B. the tmr is also located inside the B panel. The is a UpdateProgress control inside A and it triggers with B and A.

anything else anyone cant think of...

thanks in advance for any tips.


did you ever figure out this issue?

I did, however it was one of those things where I just kept moving things around and it eventually worked. But I will say that my panel A's (the parent) will still have its page_load event fired when b is updated, I just have to test to see if the timer is what caused the postback and if so run my code to change what I need to in B and change nothing in A.

Panel A (parent) is set to conditional and children as triggers False,

Panel B (nested) is set to update always with children as triggers set to true.

the timer is inside B but is NOT registered is a trigger.

0 comments:

Post a Comment