Uzyskaj wartość dynamicznie dodanego pola tekstowego z tabeli w panelu aktualizacji

Poniżej znajdują się kontrolki w aspx.

 <asp:UpdatePanel runat="server" ID="panel" ChildrenAsTriggers="false" UpdateMode="Conditional">
        <ContentTemplate>
            <asp:PlaceHolder runat="server" ID="holder"></asp:PlaceHolder>
            <asp:Button runat="server" ID="bt" Text="Add" onclick="AddTxt" />
            <asp:Button runat="server" ID="btn1" Text="Refresh" onclick="btn1_Click" />
        </ContentTemplate>

Po kliknięciu przycisku Dodaj tworzę dynamiczną tabelę. Poniżej znajduje się kod C #

protected void AddTxt(object sender, EventArgs e)
{
    int tblRows = 3;
    int tblCols = 3;

    Table tbl = new Table();

    for (int i = 0; i < tblRows; i++)
    {
        TableRow tr = new TableRow();
        for (int j = 0; j < tblCols; j++)
        {
            TableCell tc = new TableCell();
            TextBox txtBox = new TextBox();
            txtBox.ID = "txt" + i.ToString() + j.ToString();
            //txtBox.TextChanged += new EventHandler(txt_TextChanged);
            tc.Controls.Add(txtBox);

            tr.Cells.Add(tc);

            if (Session["ctls"] != null)
            {
                Session["ctls"] += ";t";
            }
            else
            {
                Session["ctls"] = "t";
            }
        }

        tbl.Rows.Add(tr);
    }

    holder.Controls.Add(tbl);

    panel.Update();

}

Gdy częściowy komunikat zwrotny występuje po kliknięciu przycisku Odśwież, nie jestem w stanie uzyskać wartości aktualizowanej przez użytkownika w polu tekstowym. Elementy sterujące będą miały pusty tekst.

protected void Page_Load(object sender, EventArgs e)
{
    foreach (Control c in holder.Controls)
    {
        if (c is TextBox)
        {

        }

    }
}

protected override void OnInit(EventArgs e)
{
    base.OnInit(e);

    if (Session["ctls"] != null)
    {
        string[] ctls = Session["ctls"].ToString().Split(';');
        foreach (string ctlType in ctls)
        {
            if (string.Compare(ctlType, "t") == 0)
            {
                holder.Controls.Add(new TextBox());
            }
        }
    }
}

Czy ktoś mógłby mi pomóc / podpowiedzieć, jak obejść dynamiczne elementy sterujące w panelu aktualizacji.

questionAnswers(2)

yourAnswerToTheQuestion