Results 1 to 2 of 2

Thread: help with automatic generation of textbox

  1. #1
    Join Date
    Apr 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default help with automatic generation of textbox

    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

  2. #2
    Join Date
    Feb 2007
    Location
    England
    Posts
    254
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Default try

    document.getElementById("TextBox"+i).value

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



    havent tested it.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •