【发布时间】:2014-11-03 11:27:03
【问题描述】:
我在服务器端(vb.net)创建了一个文本框,如下所示:
Dim r As New TableRow
Dim c As New TableCell
Dim txt As New TextBox
For i = 1 To 10
c = New TableCell
txt = New TextBox
txt.ID = "recev" & i
txt.ClientIDMode = UI.ClientIDMode.Static
Next
这为我创建了页面中的所有文本框。 现在用户需要在文本框中输入数字并按下 OK 按钮。
我的问题是我不知道如何获取数字。
如果我在 html <form> 中这样做,那么我可以这样做:
For i = 1 To 10
txt = "recev" & i & ""
Request.Form(txt)
Next
它的工作。但由于其他原因,我不能使用<form>。
我可以使用其他东西来获取用户插入的数据吗?
谢谢!
【问题讨论】: