When you create your textboxes, you have to give them an ID or Name to be able to identify them. Then you have to loop through all the controls on the page:
Private Sub IterateThroughChildren(ByVal parent As Control)
'''
Dim c As Control
For Each c In parent.Controls
If c.GetType().ToString().Equals("System.Web.UI.WebCo ntrols.TextBox") Then
Dim tb As TextBox
tb = CType(c, TextBox)
'''Here you can grab the values of the textbox and do what you want ...
Next c
End Sub 'IterateThroughChildren
|