asp.net html 控件 用 重复repeater3
<%@ import namespace="system.data" %>
<script runat="server">
sub page_load
if not page.ispostback then
dim mycdcatalog=new dataset
mycdcatalog.readxml(mappath("cdcatalog.xml"))
cdcatalog.datasource=mycdcatalog
cdcatalog.databind()
end if
end sub
</script>
<!doctype html>
<html>
<body>
<form runat="server">
<asp:repeater id="cdcatalog" runat="server">
<headertemplate>
<table border="0" width="100%">
<tr>
<th align="left">title</th>
<th align="left">artist</th>
<th align="left">company</th>
<th align="left">price</th>
</tr>
</headertemplate>
<itemtemplate>
<tr>
<td><%#container.dataitem("title")%> </td>
<td><%#container.dataitem("artist")%> </td>
<td><%#container.dataitem("company")%> </td>
<td><%#container.dataitem("price")%> </td>
</tr>
</itemtemplate>
<separatortemplate>
<tr>
<td colspan="6"><hr></td>
</tr>
</separatortemplate>
<footertemplate>
</table>
</footertemplate>
</asp:repeater>
</form>
</html>
</body>
- ASP.NET 教程
- ASP.NET Web Pages 类参考手册
- ASP.NET WebPages 帮助器参考手册
- ASP.NET Razor C# 逻辑
- ASP.NET MVC 简介
- ASP.NET MVC 模型
- ASP.NET ViewState
- ASP.NET SortedList
- ASP.NET Calendar 控件
- ASP.NET RadioButton 控件
- WebSecurity GeneratePasswordResetToken 方法
- WebSecurity InitializeDatabaseConnection 方法
- WebSecurity Login 方法
- HTML Anchor
- HTML Image 2
- HTML InputHidden
- HTML InputRadiobutton
- ASP.NET HTML 控件 Calendar 2
- ASP.NET HTML 控件 ImageButton
- ASP.NET HTML 控件 Literal