title: Cannot find Nested UpdatePanel created from async postback
body: <p>I have an UpdatePanel in which it contains a ListView.
  In the ListView, it contains another UpdatePanel.
  I wanted to add a new row inside the listview, meaning that the new row will have an UpdatePanel. But I'm getting the following error:</p>
  
  <pre><code>0x800a139e - JavaScript runtime error: Sys.InvalidOperationException: Could not 
  find UpdatePanel with ID 'PageContent_lvwUser_updtPnlUserRole_1'. If it is 
  being updated dynamically then it must be inside another UpdatePanel.
  </code></pre>
  
  <p>My code:</p>
  
  <pre><code>&lt;asp:UpdatePanel ID="updtPnlUser" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="false"&gt;
      &lt;ContentTemplate&gt;            
          &lt;asp:ListView ID="lvwUser" runat="server" 
               InsertItemPosition="FirstItem" 
               OnItemDataBound="lvwUser_ItemDataBound" 
               OnItemInserting="lvwUser_ItemInserting" 
               OnItemDeleting="lvwUser_ItemDeleting"                           
               OnPagePropertiesChanging="lvwUser_PagePropertiesChanging" 
               OnPagePropertiesChanged="lvwUser_PagePropertiesChanged"&gt;
               &lt;LayoutTemplate&gt;
               ...
               &lt;/LayoutTemplate&gt;
               &lt;ItemTemplate&gt;
               ...
                   &lt;asp:UpdatePanel ID="updtPnlUserRole" runat="server"&gt;
                       &lt;ContentTemplate&gt;     
                           &lt;asp:ListView ID="lvwUserRole" runat="server" 
                               InsertItemPosition="FirstItem" 
                               OnItemDataBound="lvwUserRole_ItemDataBound" 
                               OnItemInserting="lvwUserRole_ItemInserting" 
                               OnItemDeleting="lvwUserRole_ItemDeleting"&gt;
                               &lt;LayoutTemplate&gt;
                               ...
                               &lt;/LayoutTemplate&gt;
                           &lt;/asp:ListView&gt;
                       &lt;/ContentTemplate&gt;
                  &lt;/asp:UpdatePanel&gt;
               &lt;/ItemTemplate&gt;
               ...
           &lt;/asp:ListView&gt;
       &lt;/ContentTemplate&gt;
   &lt;/asp:UpdatePanel&gt;
  </code></pre>
  
  <p>Since the InsertItem is in the first position, index 0 will contain the new row. So index 1 is the data before I add the new row.</p>
  
  <p>Any ideas?</p>