Dynamic TextBoxes

  • Thread starter Thread starter Brian Pittman
  • Start date Start date
B

Brian Pittman

Hi,

How do you go about obtaining the text typed in a dynamic textbox when the
submit button is clicked.

Thanks Brian

'Add textbox to controls collection
Dim txtTextBox as TextBox = New TextBox
With txtTextBox
.ID = 'I assign this value from a database
.Text = ""
End With
pnlTest.Controls.Add(txtTextBox)

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
'Capture dynamic textbox value here. How?
End Sub
 
Back
Top