<%@
Register Assembly="PagerDataSource" Namespace="Manu.Web.UI.WebControls" TagPrefix="manu" %>
<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>
<ItemStyle
BackColor="White"
ForeColor="#436799"
/>
</asp:DataList>
<manu:PagerDataSource
ID="PagerDataSource1"
runat="server"
DataSourceID="ObjectDataSource1"
PageSize="14">
</manu:PagerDataSource>
<manu:PagerDataSource
ID="PagerDataSource2"
runat="server"
DataSourceID="PagerDataSource1"
PageSize="14" FirstPageText="First"
LastPageText="Last" NextPageText="Next" PreviousPageText="Prev"
ShowNumbers="False"
DisableUnnecessaryControls="False">
</manu:PagerDataSource>
<manu:PagerDataSource
ID="PagerDataSource3"
runat="server"
DataSourceID="PagerDataSource2"
PageSize="14" MaxPagesAtEachSide="2"
MorePagesText="[...]"
SeparatorText="-"
DisableUnnecessaryControls="False"
NumbersPosition="Left">
</manu:PagerDataSource>
<manu:PagerDataSource
ID="PagerDataSource4"
runat="server"
DataSourceID="PagerDataSource3"
PageSize="14" NumbersPosition="Left"
ShowFirstLast="False"
ShowPreviousNext="False"
ShowSeparator="False">
</manu:PagerDataSource>
<manu:PagerDataSource
ID="PagerDataSource5"
runat="server"
DataSourceID="PagerDataSource4"
PageSize="14" ShowFirstLast="False"
NumbersPosition="Right">
</manu:PagerDataSource>
<manu:PagerDataSource
ID="PagerDataSource6"
runat="server"
DataSourceID="PagerDataSource5"
PageSize="14"
FirstPageText='<img
src="images/first.gif" alt="First" />'
PreviousPageText='<img src="images/prev.gif" alt="Prev"
/>'
NextPageText='<img
src="images/next.gif" alt="Next" />'
LastPageText='<img src="images/last.gif" alt="Last"
/>'>
</manu:PagerDataSource>
<manu:PagerDataSource
ID="PagerDataSource7"
runat="server"
DataSourceID="PagerDataSource6"
PageSize="14" BackColor="White"
BorderColor="Black"
BorderStyle="Solid"
BorderWidth="1px"
DisableUnnecessaryControls="False"
Font-Bold="True"
SeparatorText="-">
</manu:PagerDataSource>
<manu:PagerDataSource
ID="PagerDataSource8"
runat="server"
DataSourceID="PagerDataSource7"
PageSize="14" NumbersPosition="Left"
ShowFirstLast="False"
BackColor="#133769"
BorderColor="Black"
BorderStyle="Solid"
BorderWidth="1px"
CellPadding="0"
CellSpacing="0"
GridLines="Both"
ShowSeparator="False"
DisableUnnecessaryControls="False"
Font-Bold="True"
Font-
Size="Large"
ForeColor="White">
</manu:PagerDataSource>
<asp:ObjectDataSource
ID="ObjectDataSource1"
runat="server"
TypeName="ProductsDAL"
SelectMethod="GetPagedData"
SelectCountMethod="CountAll"
EnablePaging="True"
MaximumRowsParameterName="maxRows" StartRowIndexParameterName="startIndex">
</asp:ObjectDataSource>
</asp:Content>