T
tarscher
Hi all,
I create a set of text-boxes based on user input:
for (int i = 0; i < Convert.ToInt16(keywordsDropDownList.Text);
i++)
{
myTextBox = new TextBox();
myTextBox.Columns = 5;
myTextBox.ID = "parameterTextBox"+Convert.ToInt16(i);
myTextBox.TabIndex = (short) (i+1);
buttonPlaceHolder.Controls.Add(myTextBox);
}
The text boxes are followed by a button that, when clicked, should get
the content form the text boxes and put em in a database. How can I get
the content from teh text boxes?
I cannot use
someVar = parameterTextBox0.text
since it is not known
Thanks in advance
Stijn
I create a set of text-boxes based on user input:
for (int i = 0; i < Convert.ToInt16(keywordsDropDownList.Text);
i++)
{
myTextBox = new TextBox();
myTextBox.Columns = 5;
myTextBox.ID = "parameterTextBox"+Convert.ToInt16(i);
myTextBox.TabIndex = (short) (i+1);
buttonPlaceHolder.Controls.Add(myTextBox);
}
The text boxes are followed by a button that, when clicked, should get
the content form the text boxes and put em in a database. How can I get
the content from teh text boxes?
I cannot use
someVar = parameterTextBox0.text
since it is not known
Thanks in advance
Stijn