Dynamic TextBoxes

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top