I have a dynamically generated table and for each row in the table there a some form textboxes for the user to complete and then submit the form. The problem i'm having is accessing the values within these fields once submitted.
The table has the Id=tableAssigneeChildren
This is the html produced by one of the textboxes i'm attempting to access:
<input name="ctl00$ContentPlaceHolder1$tChildName1" type="text" value="Test Name" id="tChildName1" />
The code below is what i am using just to test if I can access the above textbox:
Protected Sub btnSubmit_Click(sender As Object, e As System.EventArgs) Handles btnSubmit.Click
Dim childId As Integer
For childId = 1 To CInt(iChild.Value)
Response.Write(DirectCast(tableAssigneeChildren.FindControl("tChildName" & childId), TextBox).Text & "<br />")
Next
End Sub
Thanks in advance for any help. J.