title: DropDownList inside Repeater: How to handle SelectedIndexChange and get DataItem?
body: <p>I am putting a DropDownList with AutoPostBack inside a Repeater.<br>
  (The ListItems are populated on the repeater's ItemDataBound)</p>
  
  <pre><code>&lt;asp:Repeater ID="rptWishlist" OnItemCommand="rptWishlist_ItemCommand" onItemDataBound="rptWishlist_ItemDataBound" runat="server"&gt;
    &lt;ItemTemplate&gt;
      ...
      &lt;asp:DropDownList ID="ddlSize" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlSize_SelectedIndexChanged" /&gt;
      ...
  </code></pre>
  
  <ol>
  <li><p>Firstly, this function was not even fired on post back</p>
  
  <p><code>protected void ddlSize_SelectedIndexChanged(object sender, EventArgs e)</code><br>
  <code>{</code><br>
  <code>//This function is never called</code><br>
  <code>}</code></p></li>
  <li><p>How would I then get the DataItem after I get it working?</p></li>
  </ol>
  
  <p>Am I doing this the wrong way?</p>
  
  <p>Thank you in advance.</p>