title: OnClick event of dynamically created LinkButtons is not working
body: <p>I’ve tried several solutions for this problem but none of them worked.
  Basically, I have a table of employees and the user have the choice of adding an employee dynamically thru an update panel. Each employee is being added as <strong><em>LinkButton</em></strong> and this button will fire <strong><em>ajaxToolkit:modalpopupextender</em></strong> window through <strong><em>OnClick</em></strong> event, and this window will show the employee details.
  The problem is when I click on the employee name the popup window will show up <strong>BUT</strong> the details wont.</p>
  
  <p>Here is the code in which I’m creating the buttons and putting it in the table:</p>
  
  <pre><code>LinkButton lbtn = new LinkButton();
                      lbtn.ID = employee_arry[i] + "_lbtn" + i;
                      lbtn.Text = employee_arry[i];
                      lbtn.Click += new EventHandler(this.employee_info);
                      lbtn.CausesValidation = false;
                      lbtn.Attributes.Add("runat", "server");
                      cell.Controls.Add(lbtn);
  </code></pre>
  
  <p>and here is the employee_info method:</p>
  
  <pre><code>//the info will be pulled from the database…
  public void employee_info(object sender, EventArgs e)
      { 
          name.Text = "employee name";
          dept.Text = "employee department";
          jobt.Text = "employee job title";
          email.Text = "employee email";
          tel.Text = "employee telephone";
          ModalPopupExtender1.Show();
      }
  </code></pre>