Click here to Skip to main content
15,917,473 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi....Friends

please tell any one this task...

First of all i created one text box in asp.net
-in text box when i am trying to type any number in text box ,that many text boxes will be created in below table

Exp:i will type 3 in my text box
i wanted to get 3 text boxes in below table

Please help me.
Posted

1 solution

C#
int length = 0;
int.TryParse(textbox1.Text,out length);

for(int i=0;i<length;i++)>
{
   TextBox text = new TextBox();
   text.Text = i.ToString();

   table1.Rows[index_of_your_actual_row].Add(text); //This is an aspnet table.
}


Hope it answers your question =)
 
Share this answer
 
v2
Comments
lokesh lokesh 8-Aug-12 13:57pm    
its not showing any thing
Christian Amado 8-Aug-12 14:12pm    
Can you post your html code for your table?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900