How to access text box from dynamic created button event
<pre><code>protected void Page_Load(object sender, EventArgs e)
    {
      for (int i = 0; i &lt; list.Count; i++)
        {   Button lnk1 = new Button();
            lnk1.ID = "ln" + i;
             lnk1.Click += new EventHandler(lnk1_Click);
        }
        addButtons(ticketID);
    }
void lnk1_Click(object sender, EventArgs e)   
    {
        ViewState["btnId"] = (sender as Button).ID;
        string queryNo=(sender as Button).Text;
        addButtons(qNo);     

    }
 void addButtons(string buttonText)
    {
        if (ViewState["btnId"] == null)
            return;
       for (int i = 0; i &lt; list.Count; i++)        
             {
            TextBox txt = new TextBox();

            txt.Visible = false;
            txt.ID = "TXT" + i;

            // now reply/block/unblock to particular advisor
            Button reply = new Button();
            Button block = new Button();
            reply.Width = 80;
            block.Width = 80;
            reply.ID = "RE" + i;
            reply.Click += new EventHandler(reply_Click);
            block.Click += new EventHandler(block_Click);
        }


    }
    void reply_Click(object sender, EventArgs e)   
    {
        ViewState["btnId"] = (sender as Button).ID;
    }
</code></pre>

<p>now how to access that dynamic text box which I created in addbutton method in side reply_Click , any idea ?</p>
