我想问一下repeater是怎么用的啊,详细的有吗

zoezhhh 2009-03-25 12:36:57
目前我在做一个东西,要用到repeater,可是掌握不好呢总是,哪位高人能帮忙解决一下啊,不胜感激!
...全文
49 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
repeater 重复的意思
在cs页面 弄个DataSet对象或者数组作为数据源
然后在 源里面repeater的 项目模板里面<%#Eval("列名")%>
ylc0104 2009-03-25
  • 打赏
  • 举报
回复
<asp:Repeater ID="rpt" runat="server">
<HeaderTemplate>
<table cellpadding="0" cellspacing="0" border="0">
<thead>
<tr>
<th>字段名</th>
</tr>
</thead>
</table>
</HeaderTemplate>
<ItemTemplate>
<tbody>
<tr>
<%#Eval("绑定字段") %>
</tr>
</tbody>
</ItemTemplate>
<FooterTemplate>
<tfoot></tfoot>
</FooterTemplate>
</asp:Repeater>


后置代码绑定即可 类似gv绑定

52,787

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 Ajax
社区管理员
  • Ajax
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧