title: LinkButton command event seems to not be firing
body: <p>I created a simple user control using the AJAX Control Toolkit Accordion, LinkButton, and TextBox like this:</p>
  
  <p>TestControl.ascx:</p>
  
  <pre><code>&lt;%@ Control Language="C#" AutoEventWireup="true" CodeFile="TestControl.ascx.cs" Inherits="TestControl" %&gt;
  &lt;%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %&gt;
  &lt;cc1:Accordion ID="Accordion1" runat="server"&gt;
      &lt;Panes&gt;&lt;/Panes&gt;
      &lt;HeaderTemplate&gt;
          &lt;div&gt;&lt;%# Container.DataItem %&gt;&lt;/div&gt;
      &lt;/HeaderTemplate&gt;
      &lt;ContentTemplate&gt;
          &lt;div&gt;
              &lt;asp:TextBox ID="textBox" Text='&lt;%# Container.DataItem %&gt;' runat="server"&gt;&lt;/asp:TextBox&gt;
              &lt;asp:LinkButton Text="Update" CommandName="Update" CommandArgument='&lt;%# Container.DataItem %&gt;' OnCommand="LinkButton_Command" runat="server"&gt;&lt;/asp:LinkButton&gt;
          &lt;/div&gt;
      &lt;/ContentTemplate&gt;
  &lt;/cc1:Accordion&gt;
  </code></pre>
  
  <p>And TestControl.ascx.cx:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using System.Web.UI;
  using System.Web.UI.WebControls;
  
  public partial class TestControl : System.Web.UI.UserControl
  {
      protected void Page_Load(object sender, EventArgs e)
      {
          Accordion1.DataSource = new string[] { "one", "two", "three" };
          Accordion1.DataBind();
      }
  
      protected void LinkButton_Command(object sender, CommandEventArgs e)
      {
          if (e.CommandName == "Update")
          {
              TextBox value = ((LinkButton)sender).Parent.FindControl("textBox") as TextBox;
              ((string[])Accordion1.DataSource)[Accordion1.SelectedIndex] = value.Text;
              Accordion1.DataBind();
          }
      }
  }
  </code></pre>
  
  <p>The LinkButton_Command event handler doesn't fire at all on the first click, but on the second.  Is there a problem with where the lifecycle the controls are being created that causes events not to be hooked up properly?</p>
  
  <p>Update: I'm adding the control statically:</p>
  
  <pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %&gt;
  
  &lt;%@ Register src="TestControl.ascx" tagname="TestControl" tagprefix="uc2" %&gt;
  
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head runat="server"&gt;
      &lt;title&gt;&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
      &lt;form id="form1" runat="server"&gt;    
      &lt;asp:ScriptManager ID="ScriptManager1" runat="server"&gt;
      &lt;/asp:ScriptManager&gt;
      &lt;div border="1"&gt;
          &lt;uc2:TestControl ID="TestControl1" runat="server" /&gt;
      &lt;/div&gt;
  
  
  
      &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>