Skip to content

TextBox Array

Oren Tuil

Asked Jul 13, 2006, 10:57 AM EDT1 answer
Share
LinkedInX
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.

  • 0

    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();

    0