<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DataListWithPager.aspx.cs" Inherits="DataListWithPager" %>

<!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>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:DataList ID="DataList1" runat="server" >
            <ItemTemplate>
                CategoryId:
                <asp:Label ID="CategoryIdLabel" runat="server" 
                    Text='<%# Eval("CategoryId") %>' />
                <br />
                CategoryName:
                <asp:Label ID="CategoryNameLabel" runat="server" 
                    Text='<%# Eval("CategoryName") %>' />
                <br />
                Description:
                <asp:Label ID="DescriptionLabel" runat="server" 
                    Text='<%# Eval("Description") %>' />
                <br />
                <br />
            </ItemTemplate>
        </asp:DataList>
        
        共<asp:Label ID="MessageTotal" runat="server" Style="position: relative" Text="Label"></asp:Label>条留言&nbsp;
                    第<asp:Label ID="PageCurrent" runat="server" Style="position: relative" Text="Label"></asp:Label>页&nbsp;
                    共<asp:Label ID="PageTotal" runat="server" Style="position: relative" Text="Label"></asp:Label>页&nbsp;
                    <asp:Button ID="First" runat="server" Style="position: relative" Text="首页" OnClick="First_Click" />
                    <asp:Button ID="Previous" runat="server" Style="position: relative" Text="上一页" OnClick="Previous_Click" />
                    <asp:Button ID="Next" runat="server" Style="position: relative" Text="下一页" OnClick="Next_Click" />
                    <asp:Button ID="Last" runat="server" Style="position: relative" Text="尾页" OnClick="Last_Click" />
                    &nbsp; 转到<asp:DropDownList ID="DropDownList1" runat="server" Style="position: relative">
                    </asp:DropDownList>&nbsp;
                    <asp:Button ID="Go" runat="server" Style="position: relative" Text="GO" OnClick="Go_Click" />
        
    </div>
   
    </form>
    
    
</body>
</html>
