hitro456 0 Light Poster

Hi Folks,

I have a test.aspx page, which creates dynamic text boxes according to some condition, in following way....

TextBox t1;   //Declared at class level

button_click(...)
{
..
.
.
  while(someCondotion)
   {
      t1 = new TextBox();
      t1.ID = "TextBox" + count;
      ProductPanel.Controls.Add(t1);
   }
.
.
} //button click ends

now after these text boxes are created user enters some value in all of them....I just want to fetch that value in some other function and add them up !!!! exa

add()
{
   while(all textboxes)
     { 
         int res = res + (textbox0....)
     }
}

Any Ideas how can I retrieve value from these dynamic text boxes.....I really need help in these...