欢迎访问 如意编程网!

如意编程网

当前位置: 首页 > 编程资源 > 编程问答 >内容正文

编程问答

repeater使用1

发布时间:2024/7/5 编程问答 3 豆豆
如意编程网 收集整理的这篇文章主要介绍了 repeater使用1 小编觉得挺不错的,现在分享给大家,帮大家做个参考.
    
<td>
<!--kaishi-->
 
<asp:Repeater ID="Repeater1" runat="server">
        
<HeaderTemplate><%--这里是头模板--%>
         
<table width="100%" border="0" cellspacing="0" cellpadding="0">
        
<tr class="bg01">
        
<td>
                 
<input id="chkAll" type="checkbox"onclick="checkAll(this, 'chkOne')" />全选
                            
</td>
                            
<td>
                                编号
</td>
                          
                             
<td>
                                 姓名
</td>
                            
<td>
                                 年龄
</td>
                            
<td>
                               性别
</td>
                            
<td>
                              手机号码
</td>
                             
<td>
                               家庭住址
</td>
                               
<td>
                               权限
                               
</td>
                               
                               
<td>
                                  操作
</td>
                                 
        
</tr>
        
</HeaderTemplate>
        
<ItemTemplate><%--项模板--%>
        
<tr onMouseOver="this.style.background='#AFD1DD'" onMouseOut="this.style.background='#F2FAFC';" bgcolor="#F2FAFC" class="bg05">
<td>
  
<input id="chkOne" name ="chkOne" type="checkbox" value="<%#Eval("ID") %>" /></td>
  
<td>
                                
<%#   DataBinder.Eval(Container.DataItem,   "ID")   %>
                            
</td>
                            
<td>
                                
<%#   DataBinder.Eval(Container.DataItem,   "Name")   %>
                            
</td>
                            
<td>
                                
<%#   DataBinder.Eval(Container.DataItem,   "Age")   %>
                            
</td>
                            
<td>
                                
<%#   DataBinder.Eval(Container.DataItem,   "Sex")   %>
                            
</td>
                            
<td>
                                
<%#   DataBinder.Eval(Container.DataItem,   "Mobile")   %>
                            
</td>
                            
<td>
                                
<%#   DataBinder.Eval(Container.DataItem,   "Address")   %>
                            
</td>
                             
<td>
                                
<%#   DataBinder.Eval(Container.DataItem,   "rname")   %>
                            
</td>
                            
<td>
                                
<style="text-decoration:none" href = "UserAdd.aspx?ID=<%#Eval("ID")%>" ><img border="0" src="images/028.gif" /></a>
                            
</td>
                            
        
</tr>
        
</ItemTemplate>
        
<SeparatorTemplate><%--分隔符模板--%>
        
</SeparatorTemplate>
        
<FooterTemplate><%--页脚模板--%>
        
</table>
        
</FooterTemplate>
        
</asp:Repeater>
<!--tdzhong-->
        
</td>

转载于:https://www.cnblogs.com/palm365/archive/2008/07/01/1233234.html

总结

以上是如意编程网为你收集整理的repeater使用1的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得如意编程网网站内容还不错,欢迎将如意编程网推荐给好友。