title: AJAX.NET Subscribe to Reorderlist ItemCommand or DeleteCommand?
body: <p>I would like to subscribe to the ItemCommand event of a Reorderlist I have on my page.  The front end looks like this...</p>
  
  <pre><code>&lt;cc1:ReorderList id="ReorderList1" runat="server" CssClass="Sortables" Width="400"  OnItemReorder="ReorderList1_ItemReorder" OnItemCommand="ReorderList1_ItemCommand"&gt;
  ...
  &lt;asp:ImageButton ID="btnDelete" runat="server" ImageUrl="delete.jpg" CommandName="delete" CssClass="playClip" /&gt;
  ...
  &lt;/cc1:ReorderList&gt;
  </code></pre>
  
  <p>in the back-end I have this on Page_Load</p>
  
  <pre><code>ReorderList1.ItemCommand += new EventHandler&lt;AjaxControlToolkit.ReorderListCommandEventArgs&gt;(ReorderList1_ItemCommand);
  </code></pre>
  
  <p>and this function defined</p>
  
  <pre><code>protected void ReorderList1_ItemCommand(object sender, AjaxControlToolkit.ReorderListCommandEventArgs e)
      {
          if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
          {
              if (e.CommandName == "delete")
              {
                  //do something here that deletes the list item
              }
          }
      }
  </code></pre>
  
  <p>Despite my best efforts though, I can't seem to get this event to fire off.  How do you properly subscribe to this events in a ReorderList control?</p>