Send a suggestion!

We're building a brand new version of the site, and we'd love to hear your ideas

Members

Technology Zones

IBM Learning Center

Articles

Hosted By

MaximumASP

Info

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

Last post 04-27-2008 7:09 AM by radhikabista. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 04-27-2008 7:09 AM

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

     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 .

     

    Thanks

    Radhika 

    • Post Points: 5
Page 1 of 1 (1 items)