Hi boss,
In my page i am generating some text boxes dynamically on Button_click like this...
but in another button_click I need to display the text entered in those text boxes , so i need to get the id's of those text boxes .
How can i get those textboxes ids.....can anybody give an idea...
Thanking you....
In my page i am generating some text boxes dynamically on Button_click like this...
Code:
for (int i = 1; i <= cols; i++) { HtmlTableRow objRow = new HtmlTableRow(); HtmlTableCell objCell = new HtmlTableCell(); objCell.InnerHtml = "<td>ColumnName</td>" + "<td><input id=\"txtColumnName"+i+"\" name=\"txtColumnName"+i+"\" runat=\"server\" type=\"text\" /></td>" + "<td>ColumnWidth</td>" + "<td><input id=\"txtColumnWidth"+i+"\" name=\"txtColumnWidth"+i+"\" runat=\"server\" type=\"text\" /></td>"; objRow.Cells.Add(objCell); objTbl.Rows.Add(objRow); } this.Controls.Add(objTbl);
but in another button_click I need to display the text entered in those text boxes , so i need to get the id's of those text boxes .
How can i get those textboxes ids.....can anybody give an idea...
Thanking you....
Comment