Asp:table with Linkbutton in cells and page cycle
<p>I always seem to struggle with asp.net page cycle and dynamically created controls.</p>

<p>I have a asp:table that is created in !isPostBack in page_load (i have tried creating it in page load, page_init onint)</p>

<p>the table is created with cells that container a LinkButton:</p>

<pre><code>LinkButton lb = new LinkButton();
lb.Text = cabinet.CabinetName;
lb.CssClass = "child";
lb.Click += new EventHandler(btnChange_Folder);
lb.CommandArgument = cabinet.Id.ToString();
</code></pre>

<p>Now the problem is, whenver the Linkbutton is clicked, it doesnt fire and the table disappears.</p>

<p>I know its to do with the page cycle.</p>

<p>So my next action I try is to put the LoadTable() call outside the !IsPostBack block so its loaded everytime..</p>

<p>This seems to work, except it requires me to press each button twice for it to fire...</p>
