Sub Page_Load(Sender As Object , E As EventArgs)
Dim i, j As integer
Dim row As TableRow
Dim cell As TableCell
for i=1 to 5
row=new TableRow()
for j=1 to 5
cell=new TableCell()
cell.Controls.Add(New TextBox)
textbox.Text="第" & i & "行,第" & j & "列"
row.Cells.Add(cell)
Next
T1.Rows.Add(row)
Next
end Sub
</script>
cell.Controls.Add(New TextBox)
怎么定义 New TextBox 的名称,id 什么的?
比如 在---第" & i & "行,第" & j & "列 把其id 定义为 "&ij&"那里有cell.(...)这一系列属性的说明文章教程呢?
Dim i, j As integer
Dim row As TableRow
Dim cell As TableCell
for i=1 to 5
row=new TableRow()
for j=1 to 5
cell=new TableCell()
cell.Controls.Add(New TextBox)
textbox.Text="第" & i & "行,第" & j & "列"
row.Cells.Add(cell)
Next
T1.Rows.Add(row)
Next
end Sub
</script>
cell.Controls.Add(New TextBox)
怎么定义 New TextBox 的名称,id 什么的?
比如 在---第" & i & "行,第" & j & "列 把其id 定义为 "&ij&"那里有cell.(...)这一系列属性的说明文章教程呢?
解决方案 »
- Asp.net利用javascript弹出层加载数据或者实现登录
- 通过一般处理文件ashx保存 回帖时的标签内容 为空字符
- ====框架父窗口如何取得子窗口的标题?=========
- System.Drawing.Image.GetThumbnailImageAbort
- 用户登录是要绑定在第一次登录时的电脑上,一般是绑定那些信息?最好有代码!多谢!
- 该怎么学习?
- 呵呵,我的数据层基本完成了
- DataGrid 小问题求解^_^~
- IIS8 崩溃的500错误
- 如何实现催单 我的需求是 用户下订单以后,如果没有支付,,15分钟以后自动短息提醒一次。。求思路。
- 我的asp.net上传到虚拟主机, 能查看网页, 不能发贴更新!
- 为什么在我本地运行好的程序放到网上去就有问题呢?
Dim i, j As integer
Dim row As TableRow
Dim cell As TableCell
Dim txtBox As TextBox
for i=1 to 5
row=new TableRow()
for j=1 to 5
cell=new TableCell()
txtBox=new TextBox
txtBox.id="txtBox" &j
txtBox.Text="第" & i & "行,第" & j & "列"
cell.Controls.Add(txtBox)
row.Cells.Add(cell)
Next
T1.Rows.Add(row)
Next
end Sub
</script>
myTextBox.ID="myTextBox"+i+j //
cell.Controls.Add(New TextBox)