I have the following ASPX structure:
<UpdatePanel id='OutsidePanel' UpdateMode='Conditional'> <div runat='server' id='myDiv'> <UpdatePanel id='InsidePanel' UpdateMode='Conditional'> <asp:ImageButton that causes a postback.. /> </UpdatePanel> </div> </UpdatePanel>
When the imageButton is clicked, on the server side, I change the class of myDiv. It’s not getting updated. I assume this is because the div is outside of the Inside UpdatePanel. How would I force it to update?
Could you not just call the
Updatemethod of the ‘OutsidePanel’ UpdatePanel on the server when theImagebuttonin ‘InsidePanel’ causes a postback? Or alternatively, set upImageButtonclick event as a trigger for ‘OutsidePanel’According to MSDN