前台显示界面代码Default.aspx[代码运行环境:VS.2005]
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!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>用AspNetPager.dll控件的分页方法操作方法</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<table border=1>
<asp:Repeater ID="Repeater1" runat="server">
<ItemTemplate>
<tr>
<td><%#DataBinder.Eval(Container.DataItem,"job_id")%></td>
<td><%#DataBinder.Eval(Container.DataItem,"job_desc")%></td>
<td><%#DataBinder.Eval(Container.DataItem,"min_lvl")%></td>
<td><%#DataBinder.Eval(Container.DataItem,"max_lvl")%></td>
</tr>
</ItemTemplate>
</asp:Repeater>
</table>
<!-- <asp:DataGrid ID="DataGrid1" runat="server">
</asp:DataGrid>-->
<webdiyer:AspNetPager ID="AspNetPager1" runat="server" Width="733px" FirstPageText="第一页" LastPageText="最后一页" NextPageText="下一页" PrevPageText="上一页" Font-Names="Arial" BackColor="#F8B500" AlwaysShow="true" ShowInputBox="Always" SubmitButtonText="跳转" SubmitButtonStyle="botton" OnPageChanged="AspNetPager1_PageChanged" >
</webdiyer:AspNetPager>
</div>
</form>
</body>
</html>
//Default.aspx页面的代码
DBAccess db = new DBAccess();
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
  |