ASP.NET HTML 控件Table 2
asp.net html 控件 table 2
<script runat="server">
sub page_load(sender as object, e as eventargs)
dim rows,cells,j,i
rows=3
cells=2
for j=0 to rows-1
dim r as new tablerow()
for i=0 to cells-1
dim c as new tablecell()
c.controls.add(new literalcontrol("row " & j & ", cell " & i))
r.cells.add(c)
next
table1.rows.add(r)
next
end sub
</script>
<!doctype html>
<html>
<body>
<form runat="server">
<asp:table id="table1" borderwidth="1" gridlines="both" runat="server" />
</form>
</body>
</html>
sub page_load(sender as object, e as eventargs)
dim rows,cells,j,i
rows=3
cells=2
for j=0 to rows-1
dim r as new tablerow()
for i=0 to cells-1
dim c as new tablecell()
c.controls.add(new literalcontrol("row " & j & ", cell " & i))
r.cells.add(c)
next
table1.rows.add(r)
next
end sub
</script>
<!doctype html>
<html>
<body>
<form runat="server">
<asp:table id="table1" borderwidth="1" gridlines="both" runat="server" />
</form>
</body>
</html>
相关文章
- ASP.NET Web Pages WebSecurity 参考手册
- ASP.NET Razor C# 逻辑
- ASP.NET TextBox 控件
- ASP.NET 数据绑定
- ASP.NET Repeater 控件
- ASP.NET Image 控件
- ASP.NET ImageButton 控件
- ASP.NET Label 控件
- ASP.NET LinkButton 控件
- WebSecurity CurrentUserName 属性
- WebSecurity CreateAccount 方法
- WebSecurity IsConfirmed 方法
- HTML Inputbutton
- HTML InputImage
- HTML InputRadiobutton
- HTML Table
- AdRotator
- ASP.NET HTML 控件 Hyperlink
- ASP.NET HTML 控件 Panel
- ASP.NET HTML 控件 Table