<%@ Page Language="C#" MasterPageFile="~/DefaultMaster.master" AutoEventWireup="true" CodeFile="Paging_DataSourceId1.aspx.cs" Inherits="Paging_DataSourceId1" Title="Paging with a Data Source Control" %>
<%@ Register Assembly="PagerDataSource" Namespace="Manu.Web.UI.WebControls" TagPrefix="manu" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Content" Runat="Server">
<h2>Product List
</h2>
<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>
</asp:DataList>
<manu:PagerDataSource ID="PagerDataSource1" runat="server"
DataSourceID="ObjectDataSource1" 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>