<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Listing16-8.aspx.cs"
	Inherits="Listing16_8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
	<title>Bez nzvu</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ListView ID="customersList" runat="server"
DataSourceID="customersDataSource">
<LayoutTemplate>
<table cellpadding="2" cellspacing="3">
<tr>
<th style="text-align: center">CustomerId</th>
<th style="text-align: center">CompanyName</th>
<th style="text-align: center">ContactName</th>
<th style="text-align: center">Country</th>
</tr>
<asp:PlaceHolder ID="itemPlaceholder" runat="server" />
</table>
</LayoutTemplate>
<ItemTemplate>
<tr>
<td style="text-align: center">
	<asp:Label runat="server" Text='<%# Eval("CustomerId") %>' />
</td>
<td style="text-align: center">
	<asp:Label runat="server" Text='<%# Eval("CompanyName") %>' />
</td>
<td style="text-align: center">
	<asp:Label runat="server" Text='<%# Eval("ContactName") %>' />
</td>
<td style="text-align: center">
	<asp:Label runat="server" Text='<%# Eval("Country") %>' />
</td>
</tr>
</ItemTemplate>
</asp:ListView>

<asp:DataPager ID="customersListPager" runat="server"
PagedControlID="customersList" PageSize="5">
<Fields>
	<asp:NumericPagerField ButtonCount="20" />
</Fields>
</asp:DataPager>
<asp:SqlDataSource ID="customersDataSource" runat="server"
ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
SelectCommand="SELECT [CustomerID], [CompanyName], [ContactName],
[Country] FROM [Customers]" />

</div>
</form>
</body>
</html>
