title: Creating LinkButtons Programmatically with ServerSide Event handler
body: <p>I'm trying to create multiple LinkButtons and wire then to a single event handler on the server. The link buttons render fine but when I check the rendered html theres no __doPostBack;</p>
  
  <p>Here is my code:</p>
  
  <pre><code>LinkButton lb = new LinkButton();                        
  lb.ID = "index" + loopIndex;
  lb.Text = "click me";
  lb.Click += new EventHandler(lb_Click);
  lb.RenderControl(writer);
  </code></pre>
  
  <p>and the event handler ofcourse:</p>
  
  <pre><code>void lb_Click(object sender, EventArgs e)
  {
  
  }
  </code></pre>
  
  <p>Take into account that this is in PageLoad and inside a loop.</p>