Demo of DataPager

代码
<asp:DataPager ID="MarktetDataPager" runat="server" PagedControlID="MarktetList" PageSize="10">
                                                        
<Fields>
                                                            
<asp:TemplatePagerField>
                                                                
<PagerTemplate>
                                                                    共
<span style="color: #cc3300">
                                                                        
<%# Container.TotalRowCount % Container.PageSize == 0 ? Container.TotalRowCount / Container.PageSize : Container.TotalRowCount / Container.PageSize+1
                                                                        
%></span> 页
                                                                
</PagerTemplate>
                                                            
</asp:TemplatePagerField>
                                                            
<asp:NextPreviousPagerField FirstPageText="|&lt;&lt;" ShowFirstPageButton="True"
                                                                ShowNextPageButton
="False" ShowPreviousPageButton="False" />
                                                            
<asp:NumericPagerField />
                                                            
<asp:NextPreviousPagerField LastPageText="&gt;&gt;|" ShowLastPageButton="True" ShowNextPageButton="False"
                                                                ShowPreviousPageButton
="False" />
                                                        
</Fields>
                                                    
</asp:DataPager>

 

posted on 2010-02-25 13:53  Paul_  阅读(237)  评论(0编辑  收藏  举报

导航