asp.net How to add dynamic LinkButton in the button click event?
<p>Is there a way to add LinkButton after a submit button is clicked and have it post back correctly. Take this scenario for instance.</p>

<p>A page is loaded with an upload control on it and a submit button. After a selection is made and the user clicks the submit button, I would like to show in another divider the files that have been uploaded with an optional remove button beside the file name. The issue is that when the user clicks the submit button I try to add the controls on the click handler because that is where the file is requested but when I try to add a linkbutton in the control response and the events of course do not hook up.</p>

<pre><code>&lt;form .....
&lt;telerik:RadAsyncUpload ID="CtrlRadAsyncUpload" runat="server"&gt;
&lt;/telerik:RadAsyncUpload&gt;
&lt;asp:Button ID="CtrlSave" runat="server" Text="Submit Plans" /&gt;


protected override void OnInit(EventArgs e)
{
    base.OnInit(e);
    CtrlSave.Click += new EventHandler(CtrlSave_Click);
}

protected void Page_Load(object sender, EventArgs e)
{
 //the problem is here, the new files are not created until after telerik has processed it own button click. I could add the buttons here, but the files are not posted yet. So i try to add them in the button click event. see below.
}

void CtrlSave_Click(object sender, EventArgs e)
{
 any LinkButtons created and added to the controls collection are there, but they do not post back properly

 //get uploaded data
 LinkButton pDelete = new LinkButton();
            pDelete.Text = "Remove";
            pDelete.Command += new CommandEventHandler(pDelete_Command);
            pDelete.CommandArgument = pFile;
            pDelete.CommandName = "Delete";
            Controls.Add(pDelete);
}
</code></pre>

<p>Does any one have any good ideas to solve this? I have looked all around the web and I think I have a fairly decent grasp on the page lifecycle. But this is annoying. I seem to get stuck with these issues more often than not.</p>
