<%@
Page Language="C#" MasterPageFile="~/DefaultMaster.master" AutoEventWireup="true" CodeFile="TwoPagers.aspx.cs" Inherits="TwoPagers" Title="Two Pagers synchronized"
%>
<%@
Register Assembly="PagerDataSource" Namespace="Manu.Web.UI.WebControls" TagPrefix="manu" %>
<asp:Content
ID="Content1" ContentPlaceHolderID="Content" Runat="Server">
<h2>Product List</h2>
<manu:PagerDataSource
ID="PagerDataSource1"
runat="server"
DataSourceID="ObjectDataSource1"
PageSize="14">
</manu:PagerDataSource>
<asp:DataList
ID="DataList1" runat="server"
DataKeyField="id"
DataSourceID="PagerDataSource1"
RepeatColumns="7"
RepeatDirection="Horizontal"
Width="100%">
<ItemTemplate>
<table>
<tr>
<td align="center">
<asp:Label
ID="idLabel" runat="server"
Text='<%# Eval("id") %>'></asp:Label>
</td>
</tr>
<tr>
<td align="center">
<b><asp:Label
ID="nameLabel"
runat="server"
Text='<%# Eval("name") %>'></asp:Label></b>
</td>
</tr>
<tr>
<td align="center">
<asp:Label
ID="descriptionLabel"
runat="server"
Text='<%# Eval("description") %>'></asp:Label>
</td>
</tr>
<tr>
<td align="center">
<asp:Label
ID="priceLabel" runat="server"
Text='<%# Eval("price", "{0:#0.00}") %>'>
</asp:Label>
$
</td>
</tr>
</table>
</ItemTemplate>
<ItemStyle
BackColor="White"
ForeColor="#436799"
/>
</asp:DataList>
<manu:PagerDataSource
ID="PagerDataSource2"
runat="server"
DataSourceID="PagerDataSource1"
PageSize="14">
</manu:PagerDataSource>
<asp:ObjectDataSource
ID="ObjectDataSource1"
runat="server"
TypeName="ProductsDAL"
SelectMethod="GetPagedData"
SelectCountMethod="CountAll"
EnablePaging="True"
MaximumRowsParameterName="maxRows" StartRowIndexParameterName="startIndex">
</asp:ObjectDataSource>
</asp:Content>