control with changing name?

Discussion in 'ASP .Net Building Controls' started by Beatrix, Nov 19, 2007.

  1. Beatrix

    Beatrix Guest

    Hi,

    My idea is that I want to draw more textboxes runtime, with a "for".

    Like
    for (i=0; i< sg;i++)
    {
    TextBox something+i = new TextBox; //meaning something1
    }
    when i is always added to the previous, and gives multiple textboxes.

    I need this because I have to draw multiple textboxes, and check the answers.
    Now I start to understand, if I dont assign the name for all textboxes I
    will not be able to return their values. Then is there a better option?

    Thank you,
     
    Beatrix, Nov 19, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Samridhi Kumar Shukla
    Replies:
    1
    Views:
    538
    Alvin Bruney
    Nov 30, 2003
  2. =?iso-8859-1?B?bW9vcJk=?=
    Replies:
    7
    Views:
    890
    Roedy Green
    Jan 2, 2006
  3. ding feng
    Replies:
    2
    Views:
    2,904
    ding feng
    Jun 25, 2003
  4. Bobby Chamness
    Replies:
    2
    Views:
    2,440
    Joe Smith
    Apr 22, 2007
  5. Jack-2
    Replies:
    3
    Views:
    327
    Jack-2
    Dec 24, 2003
Loading...

Share This Page