通过定制n行m列的数据表而不是常用的n行1列数据表可以有效利用页面空间,下面是一个例子:

使用Repeater定制n行m列的数据邦定表        <asp:Repeater ID="roleList" runat="server" OnItemDataBound="roleList_ItemDataBound">
使用Repeater定制n行m列的数据邦定表            
<HeaderTemplate>
使用Repeater定制n行m列的数据邦定表                
<table class="Listing_table" border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
使用Repeater定制n行m列的数据邦定表            
</HeaderTemplate>
使用Repeater定制n行m列的数据邦定表            
<ItemTemplate>
使用Repeater定制n行m列的数据邦定表                
<asp:Literal id="beginRow" runat="server" />
使用Repeater定制n行m列的数据邦定表                    
<td valign="top" id="tableColumn" runat="server">
使用Repeater定制n行m列的数据邦定表                        
<div class="listContainer">
使用Repeater定制n行m列的数据邦定表                            
<asp:Literal ID="roleName" runat="server" />
使用Repeater定制n行m列的数据邦定表                        
</div>
使用Repeater定制n行m列的数据邦定表                    
</td>
使用Repeater定制n行m列的数据邦定表                
<asp:Literal id="endRow" runat="server" />
使用Repeater定制n行m列的数据邦定表            
</ItemTemplate>
使用Repeater定制n行m列的数据邦定表            
<FooterTemplate>
使用Repeater定制n行m列的数据邦定表                
</table>
使用Repeater定制n行m列的数据邦定表            
</FooterTemplate>
使用Repeater定制n行m列的数据邦定表        
</asp:Repeater>

使用Repeater定制n行m列的数据邦定表public int ListingRows
    }

分页状态下的使用:

使用Repeater定制n行m列的数据邦定表    <div>
使用Repeater定制n行m列的数据邦定表        
<asp:Repeater ID="roleList" runat="server" OnItemDataBound="roleList_ItemDataBound">
使用Repeater定制n行m列的数据邦定表            
<HeaderTemplate>
使用Repeater定制n行m列的数据邦定表                
<table class="Listing_table" border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
使用Repeater定制n行m列的数据邦定表            
</HeaderTemplate>
使用Repeater定制n行m列的数据邦定表            
<ItemTemplate>
使用Repeater定制n行m列的数据邦定表                
<asp:Literal id="beginRow" runat="server" />
使用Repeater定制n行m列的数据邦定表                    
<td valign="top" id="tableColumn" runat="server">
使用Repeater定制n行m列的数据邦定表                        
<div class="listContainer">
使用Repeater定制n行m列的数据邦定表                            
<asp:Literal ID="roleName" runat="server" />
使用Repeater定制n行m列的数据邦定表                        
</div>
使用Repeater定制n行m列的数据邦定表                    
</td>
使用Repeater定制n行m列的数据邦定表                
<asp:Literal id="endRow" runat="server" />
使用Repeater定制n行m列的数据邦定表            
</ItemTemplate>
使用Repeater定制n行m列的数据邦定表            
<FooterTemplate>
使用Repeater定制n行m列的数据邦定表                
</table>
使用Repeater定制n行m列的数据邦定表            
</FooterTemplate>
使用Repeater定制n行m列的数据邦定表        
</asp:Repeater>
使用Repeater定制n行m列的数据邦定表    
</div>
使用Repeater定制n行m列的数据邦定表   
<div>
使用Repeater定制n行m列的数据邦定表        
<webdiyer:AspNetPager ID="pager" runat="server" Width="100%" OnPageChanging="pager_PageChanging"  
使用Repeater定制n行m列的数据邦定表            UrlPaging
="true" 
使用Repeater定制n行m列的数据邦定表            HorizontalAlign
="right" 
使用Repeater定制n行m列的数据邦定表            PageSize
="5" 
使用Repeater定制n行m列的数据邦定表            EnableTheming
="true" 
使用Repeater定制n行m列的数据邦定表            NumericButtonCount
="3"
使用Repeater定制n行m列的数据邦定表            UrlPageIndexName
="p" 
使用Repeater定制n行m列的数据邦定表            NumericButtonTextFormatString
="[{0}]"
使用Repeater定制n行m列的数据邦定表            ShowInputBox
="Always" 
使用Repeater定制n行m列的数据邦定表            SubmitButtonText
="go" 
使用Repeater定制n行m列的数据邦定表            TextBeforeInputBox
="跳到" 
使用Repeater定制n行m列的数据邦定表            TextAfterInputBox
="页" 
使用Repeater定制n行m列的数据邦定表            ShowCustomInfoSection
="Left"
使用Repeater定制n行m列的数据邦定表            CustomInfoHTML
="页次:<font color='red'>%currentPageIndex%</font>/%pageCount%页 <font color='red'>%PageSize%</font>个内容/页  共有<font color='red'>%RecordCount%</font>个内容"
使用Repeater定制n行m列的数据邦定表            FirstPageText
="<<" 
使用Repeater定制n行m列的数据邦定表            LastPageText
=">>" 
使用Repeater定制n行m列的数据邦定表            PrevPageText
="<" 
使用Repeater定制n行m列的数据邦定表            NextPageText
=">" 
使用Repeater定制n行m列的数据邦定表            Font-Size
="Smaller" 
使用Repeater定制n行m列的数据邦定表            ShowNavigationToolTip
="true" 
使用Repeater定制n行m列的数据邦定表            
>
使用Repeater定制n行m列的数据邦定表        
</webdiyer:AspNetPager>  
使用Repeater定制n行m列的数据邦定表    
</div>

使用Repeater定制n行m列的数据邦定表    public int ListingRows
    }

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-20
  • 2022-12-23
  • 2022-12-23
  • 2022-01-26
  • 2021-11-23
  • 2022-12-23
猜你喜欢
  • 2021-10-27
  • 2022-01-31
  • 2022-02-22
  • 2022-01-02
  • 2021-06-07
  • 2022-12-23
相关资源
相似解决方案