Log in

View Full Version : help with automatic generation of textbox



o_ramos_pt
04-23-2007, 11:03 AM
hy there i would like to know, how to i read values from a textbox that was generated automatic by a script, this was madde by vb.net

Dim i As Integer
Dim numtexts As Integer = TextBox1.Text
For i = 1 To numtexts
Dim t As New TextBox()
t.Text = "TextBox" & i.ToString()
t.ID = "TextBox" & i.ToString()
Panel1.Controls.Add(t)
Panel1.Controls.Add(New LiteralControl("<br>"))
Next i

Bob90
04-23-2007, 01:39 PM
document.getElementById("TextBox"+i).value

Where i is the number of the textbox you want to read

:)

havent tested it.