title: Trigger UpdatePanel from Dropdownlist in ChildControl
body: <p>This is my situation:</p>
  
  <p>Page:</p>
  
  <pre class="lang-asp prettyprint-override"><code>&lt;asp:UpdatePanel ID="updatePanel1" runat="server" ChildrenAsTriggers="true"&gt;
    &lt;ContentTemplate&gt;
      ...
      &lt;uc:ChildControl ID="ucChild" runat="server" /&gt;
      ...
    &lt;/ContentTemplate&gt;
  &lt;/asp:UpdatePanel&gt;
  </code></pre>
  
  <p>ChildControl:</p>
  
  <pre class="lang-asp prettyprint-override"><code>...
  &lt;asp:DropDownList id="dropDown1" runat="server" /&gt;
  ...
  </code></pre>
  
  <p>I want to update the UpdatePanel (asynchronously) in the Page when the selection of the DropDownList in the ChildControl changes. I tried AutoPostBack="true", but this always leads to a full PostBack of the Page (see <a href="https://stackoverflow.com/questions/1256943/dropdownlist-in-updatepanel">this question</a>).</p>
  
  <p>I tried to use</p>
  
  <pre class="lang-asp prettyprint-override"><code>&lt;Triggers&gt;
      &lt;asp:AsyncPostBackTrigger ControlID="???" EventName="SelectedIndexChanged" /&gt;
  &lt;/Triggers&gt;
  </code></pre>
  
  <p>but neither "dropDown1" nor "ucChild.dropDown1" worked as values for ControlID.</p>
  
  <p>I also tried to pass a reference of the UpdatePanel to the ChildControl and add a Trigger in the following way:</p>
  
  <pre class="lang-cs prettyprint-override"><code>protected override void OnPreRender(EventArgs e)
  {
      if (ParentUpdatePanel != null)
      {
          AsyncPostBackTrigger trigger = new AsyncPostBackTrigger();
          trigger.ControlID = dropDown1.ID;
          trigger.EventName = "SelectedIndexChanged";
          ParentUpdatePanel.Triggers.Add(trigger);
      }
      base.OnPreRender(e);
  }
  </code></pre>
  
  <p>(also tried with dropDown1.ChildID)</p>
  
  <p>But I am still unable to get the UpdatePanel to trigger when the value in the Dropdown changes. The problem seems to be that the UpdatePanel cannot see the Control in the ChildControl and therefore is unable to set the Trigger accordingly.</p>
  
  <p>How can I do it?</p>