Hi,
In button1 click event add the TextBox like:
TextBox t1 = new TextBox();
t1.ID = "TextBox1";
TextBox t2 = new TextBox();
t2.ID = "TextBox2";
Panel1.Controls.Add(t1);
Panel1.Controls.Add(t2);
In button2 click event find TextBox value like:
TextBox t1 = (TextBox)Panel1.FindControl("TextBox1");
TextBox t2 = (TextBox)Panel1.FindControl("TextBox2");
Isn't this too easy.
Anyway try it.
All the best.
--Amit