title: DropDownList event within Accordian and GridView
body: <p>An event bound to a DropDownList in a standalone GridView obviously would work in this fashion , but things are bit more complicated in this scenario.  </p>
  
  <p>The event does not fire for the DropDownList.  What's interesting is the event bound to the Button <strong>Does fire</strong>.  Not sure what the difference would be between the DropDownList and TextBox.  </p>
  
  <p>I've tried both OnSelectedIndexChanged and OnTextChanged - neither work.  </p>
  
  <p>The nesting is as follows:</p>
  
  <ol>
  <li>GridView A</li>
  <li>Ajax Accordion</li>
  <li><p>GridView B (With DropDownList)</p>
  
  <pre><code>&lt;AjaxToolkit:AccordionPane ID="AccordionPane1" runat="server"&gt;
      &lt;Header&gt;        
      &lt;/Header&gt;
      &lt;Content&gt;
          &lt;asp:GridView runat="server" ID="gv" AutoGenerateColumns="false"
              BorderWidth="0" AlternatingRowStyle-BorderStyle="None" ShowFooter="true"&gt;
              &lt;Columns&gt;
                  &lt;asp:TemplateField HeaderText="Id"&gt;
                      &lt;ItemTemplate&gt;
                          &lt;asp:Label runat="server" ID="lblId" Text='&lt;%# Eval("Id") %&gt;'&gt;&lt;/asp:Label&gt;
                      &lt;/ItemTemplate&gt;
                  &lt;/asp:TemplateField&gt;
                  &lt;asp:TemplateField HeaderText="Type"&gt;
                      &lt;ItemTemplate&gt;
                          &lt;asp:Label runat="server" ID="lblType"&gt;&lt;/asp:Label&gt;
                      &lt;/ItemTemplate&gt;
                      &lt;FooterTemplate&gt;
                          &lt;asp:DropDownList runat="server" ID="ddlType" OnTextChanged="ddlType_SelectedIndexChanged"
                              AutoPostBack="true"&gt;
                          &lt;/asp:DropDownList&gt;
                          &lt;asp:Button runat="server" ID="btnTest" OnClick="btnTest_Click" Text="TEST" /&gt;
                      &lt;/FooterTemplate&gt;
                  &lt;/asp:TemplateField&gt;                                               
              &lt;/Columns&gt;
          &lt;/asp:GridView&gt;
      &lt;/Content&gt;
  </code></pre>
  
  <p></p></li>
  </ol>
  
  <p>Thank you!</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Turns out this had nothing to do with the nested GridViews or Accordion.  </p>
  
  <p>After adding the following, the event now successfully fires:</p>
  
  <pre><code>            if (!Page.IsPostBack)
                  Populate(object);
  </code></pre>