Hi there,
I'll try to be as descriptive as possible here. We have some code that was working and now, without being changed, is not. I've isolated the issue, so here is the situation:
We have an ASPX page, and on it there are 2 asp:Panel controls(Panel1 and Panel2). In each of these panels, there is a single WebUserControl (Panel1 contains UserControl1, Panel2 contains UserControl2). There is the AJAX toolkit Scriptmanager on this page, and that is all. When the User first visits the page Panel1 is shown and Panel2 is hidden.
In UserControl1, there is an asp:Panel, a asp:Label containing an asp:UpdatePanel and inside it an asp:Button. In the code behind, there is a delegate and an event to raise it - when you click the button this event is fired. There is a handler for this event in the ASPX page containing the UserControl.
In Panel2 there is an asp:UpdatePanel, asp:Panel and asp:Label
So in the ASPX page, when you click the button in UserControl1, the event is handled. This event handler then hides Panel1 and shows Panel2. At least that is what USED to happen, but this does not happen now.
So to summarise - ASPX page on first visit shows Panel1 with UserControl1. In UserControl1 there is button, User clicks this which raises event in ASPX page, this is supposed to hide Panel1 and show Panel2.
If you remove the UpdatePanels out of UserControl1 and UserControl2, the code works.
Obviously, our 'real life' code here is more complicated - but this small example shows where the problem is.
Here is a zip containing the issue: http://test.wikisaber.es/testajax.zip