Dynamically created LinkButton posts back but does not call onClick Method
<p>My issue is the page posts back but does not call the method.</p>

<p>Here is where I create the link Buttons inside the RenderProducts method</p>

<pre><code>for (var counter = 1; counter &lt;= numberOfPages; counter++)
        {

            var pagingLink = new LinkButton
                                 {
                                     Text = " " + counter.ToString(CultureInfo.InvariantCulture) + " ",
                                     ID = "page" + counter
                                 };
            pagingLink.Attributes["runAt"] = "server";
            pagingLink.Attributes["class"] = "paging-link";
            pagingLink.Attributes.Add("AutoPostBack", "true");
            pagingLink.Attributes.Add("AutoEventWireup", "true"); 
            pagingLink.Click +=ChangePage;

            paging.Controls.Add(pagingLink);
        }
</code></pre>

<p>The method it is calling</p>

<pre><code>        public void ChangePage(object sender, EventArgs args)
    {
        // handle this particular case
        RenderProducts(2);
    }
</code></pre>

<p>For completeness below you will see on PostBack I prevent it's default action</p>

<pre><code> protected void Page_Load(object sender, EventArgs e)
    {
        GetSideBar();
        BuildRefineSearch();
        PopulateList();
        PerformSearch();
        if(!IsPostBack )
        {
            RenderProducts(1);
        }


    }
</code></pre>
