I have created a custom control which generates a table of text boxes. I now want to iteriate the table cells and read the <BR><BR>text property of each text box. How can I do that. I have a button in my control which fires off the AddBtn_Click event and <BR><BR>want to put this code there. Thanks<BR><BR>~~~~~~~~~~~~~<BR>Option Strict Off<BR><BR>Imports System<BR>Imports System.Web<BR>Imports System.Web.UI<BR>Imports System.Web.UI.WebControls<BR><BR><BR>Namespace Hersh<BR><BR> Public Class AddControl1 : Inherits Control : Implements INamingContainer<BR> <BR> <BR> <BR><BR> Protected Overrides Sub CreateChildControls()<BR><BR> <BR> Dim numrows As Integer<BR> Dim numcells As Integer<BR> Dim i As Integer<BR> Dim j As Integer<BR> Dim r As TableRow<BR> Dim c As TableCell<BR> Dim table as Table<BR> <BR> <BR> table = New Table()<BR> <BR> Controls.Add( table )<BR> <BR> &#039; Generate rows and cells<BR> numrows = 2<BR> numcells = 2<BR> <BR> For j = 0 To numrows-1<BR> <BR> r = new TableRow()<BR> <BR> For i = 0 To numcells-1<BR> c = new TableCell()<BR> &#039;c.Controls.Add(new LiteralControl("row " & j & ", cell " & i))<BR> &#039;r.Cells.Add(c)<BR> Dim Box As New TextBox<BR> Box.Text = j.ToString + i.ToString<BR> Box.ID = j.ToString + i.ToString<BR> c.Controls.Add(box) <BR> <BR> r.Cells.Add(c) &#039;&#060;/td&#062;<BR> <BR> &#039;----<BR> Table.Rows.Add(r) &#039;&#060;/tr&#062;<BR> Next i<BR> &#039;Table.Rows.Add(r)<BR> <BR> Next j<BR> End Sub<BR> <BR> Dim AddButton As New Button<BR> AddButton.Text = "Add"<BR> AddHandler AddButton.Click, AddressOf AddBtn_Click<BR> Me.Controls.Add(AddButton)<BR> <BR> Private Sub AddBtn_Click(Sender As Object, E As EventArgs)<BR> <BR> &#039;?????????????????????<BR> &#039; Can&#039;t figure out how to read the text property of text boxes <BR> <BR><BR> &#039;Dim txtTest as Textbox= me.Controls(0)<BR> &#039;me.Controls.Add(new LiteralControl(txtTest.text))<BR> End Sub<BR> <BR><BR> End Class<BR><BR>End Namespace<BR><BR>