<%@
Page Language="C#" MasterPageFile="~/DefaultMaster.master" AutoEventWireup="true" CodeFile="CustomPageItems.aspx.cs" Inherits="CustomPageItems" Title="Custom Page Items" %>
<%@
Register Assembly="PagerDataSource" Namespace="Manu.Web.UI.WebControls" TagPrefix="manu" %>
<asp:Content
ID="Content1" ContentPlaceHolderID="Content" Runat="Server">
<h2>IP addresses list</h2>
<manu:PagerDataSource
ID="PagerDataSource1"
runat="server"
DataSourceID="ObjectDataSource1"
UseCustomPageItems="True">
</manu:PagerDataSource>
<asp:GridView
ID="GridView1" runat="server" AutoGenerateColumns="False"
BackColor="#335789"
BorderColor="#133769"
BorderStyle="Solid"
BorderWidth="1px"
DataKeyNames="Id"
DataSourceID="PagerDataSource1"
CssClass="gridview"
AllowSorting="True">
<Columns>
<asp:BoundField
DataField="Id"
HeaderText="Id"
ReadOnly="True"
SortExpression="Id"
/>
<asp:BoundField
DataField="IPAddress"
HeaderText="IPAddress"
SortExpression="IPAddress"
/>
<asp:BoundField
DataField="ConnectionTime"
HeaderText="ConnectionTime"
SortExpression="ConnectionTime"
/>
<asp:BoundField
DataField="KB downloaded"
HeaderText="KB downloaded"
SortExpression="KB
downloaded" />
<asp:BoundField
DataField="Country"
HeaderText="Country"
SortExpression="Country"
/>
</Columns>
<RowStyle
BackColor="White"
ForeColor="#436799" />
<HeaderStyle
ForeColor="White"
/>
</asp:GridView>
<manu:PagerDataSource
ID="PagerDataSource2"
runat="server"
DataSourceID="PagerDataSource1"
UseCustomPageItems="True">
</manu:PagerDataSource>
<asp:ObjectDataSource
ID="ObjectDataSource1"
runat="server"
TypeName="IPDataDAL"
SortParameterName="sortedBy" SelectMethod="GetDataByCountry"
SelectCountMethod="CountAll"
EnablePaging="True"
MaximumRowsParameterName="maxRows" StartRowIndexParameterName="countryId"
OldValuesParameterFormatString="original_{0}">
</asp:ObjectDataSource>
</asp:Content>