array of textboxes

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

i am trying to create an application that askes the user how much questions
would you like to fill in. Based the amount that is picked.. anywhere from 0
to 49. I need to create textboxes at run time. I would like to turn them into
an array like in vb6. I just don't know how to create texboxes in asp.net at
run time and how to make them into an array. Can anyone help me out?
 
Adding a control to a webpage in asp.net is fairly simple.

Instantiate a System.Web.UI.WebControls.TextBox into a variable.
Set visible - true'
Set other relevant properties (name comes to mind)
Add to the Form's Controls collection using Controls.Add(..)

These are simple ref type variables that can exist in any form then on.

- Sahil Malik
You can reach me thru my blog -
http://www.dotnetjunkies.com/weblog/sahilmalik
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top