TextBox Array
Hi, does anybody knows how to make a TextBox Array in C#.NET Web Application?
Thanks,
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
mallikarjun prasad17 pointsPosted Jul 13, 2006, 10:21 PM EDT
Hi I don't understand what u r saying. The following code will take input from text box and repeat that many times
int noOfFriends = Convert.ToInt32(TextBox1.Text.ToString());
ArrayList friends = new ArrayList();
for(int i=0; i<=noOfFriends; i++)
{
friends.Add(i);
}
DataGrid1.DataSource = friends;
DataGrid1.DataBind();