C#+help with dynamic textbox and their naming+ VV Urgent!!!!!!!!!!!1

csharp , db Adelaide, Australia
  • 12 years ago

     hi frens,


    actually i have to create textbox dynamically and then accept user input.


    for (int i = 0; i < no_towers; i++)
                        string name= "t"+i.ToString();
                        TextBox t = new TextBox();
                       t.Name = name;

    now what i have to do is get the user input from these textboxes and save to database.


    how can i get the values in the textboxes.

    when i tried to use 


    for (int i = 0; i < no_towers; i++)
                        string name= "t"+i.ToString();
                       string name[i]= name.text.ToString();


    i failed .

    please help me .




Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Beware of bugs in the above code; I have only proved it correct, not tried it.” - Donald Knuth