近来在网上找了一些分页程序,大部分都是基于SQL存储过程的,在实现上有一定的局限性,其中有一片文章我比较喜欢是基于SQL命令的,但是在实现代码有一点点不合理,我做了一些改进放上来给大家看看,希望能帮得上大家。

 1通用SQL分页程序<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DefaultDataGrid_02.aspx.cs" Inherits="数据分页DEMO_DefaultDataGrid" %>
 2通用SQL分页程序
 3通用SQL分页程序<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 4通用SQL分页程序
 5通用SQL分页程序<html xmlns="http://www.w3.org/1999/xhtml" >
 6通用SQL分页程序<head runat="server">
 7通用SQL分页程序    <title>无标题页</title>
 8通用SQL分页程序</head>
 9通用SQL分页程序<body>
10通用SQL分页程序    <form id="form1" runat="server">
11通用SQL分页程序    <div>
12通用SQL分页程序<asp:LinkButton id="lbtnFirst" Font-Size="Smaller" Runat="server" OnClick="lbtnFirst_Click">首頁</asp:LinkButton>
13通用SQL分页程序<asp:LinkButton id="lbtnBack" Font-Size="Smaller" Runat="server" OnClick="lbtnBack_Click">上頁</asp:LinkButton>
14通用SQL分页程序<asp:LinkButton id="lbtnNext" Font-Size="Smaller" Runat="server" OnClick="lbtnNext_Click">下頁</asp:LinkButton>
15通用SQL分页程序<asp:LinkButton id="lbtnLast" Font-Size="Smaller" Runat="server" OnClick="lbtnLast_Click">尾頁</asp:LinkButton>
16通用SQL分页程序<asp:Label id="Label1" Font-Size="Smaller" runat="server">当前页:</asp:Label>
17通用SQL分页程序<asp:Label id="lblCurrentPage" Font-Size="Smaller" runat="server">1</asp:Label>
18通用SQL分页程序<asp:Label id="Label2" Font-Size="Smaller" runat="server">总页:</asp:Label>
19通用SQL分页程序<asp:Label id="lblPageCount" Font-Size="Smaller" runat="server">200</asp:Label>
20通用SQL分页程序<asp:Label id="Label3" Font-Size="Smaller" runat="server">跳转:</asp:Label>
21通用SQL分页程序<asp:TextBox id="txtToPage" Font-Size="Smaller" runat="server" Width="88px"></asp:TextBox>
22通用SQL分页程序<asp:Button id="btnToPage" Font-Size="Smaller" runat="server" Text="go" OnClick="btnToPage_Click"></asp:Button>
23通用SQL分页程序
24通用SQL分页程序<asp:DataGrid id="DataGrid1" runat="server" CellPadding="4" ForeColor="#333333" 
25通用SQL分页程序     GridLines="None" Font-Bold="False" Font-Italic="False" 
26通用SQL分页程序     Font-Names="幼圆" Font-Overline="False" Font-Size="Smaller" 
27通用SQL分页程序     Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left">
28通用SQL分页程序    <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
29通用SQL分页程序    <EditItemStyle BackColor="#7C6F57" />
30通用SQL分页程序    <SelectedItemStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
31通用SQL分页程序    <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
32通用SQL分页程序    <AlternatingItemStyle BackColor="White" />
33通用SQL分页程序    <ItemStyle BackColor="#E3EAEB" />
34通用SQL分页程序    <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
35通用SQL分页程序</asp:DataGrid>
36通用SQL分页程序
37通用SQL分页程序
38通用SQL分页程序    </div>
39通用SQL分页程序    </form>
40通用SQL分页程序</body>
41通用SQL分页程序</html>
42通用SQL分页程序

  1通用SQL分页程序using System;
  2通用SQL分页程序using System.Data;
  3通用SQL分页程序using System.Configuration;
  4通用SQL分页程序using System.Collections;
  5通用SQL分页程序using System.Web;
  6通用SQL分页程序using System.Web.Security;
  7通用SQL分页程序using System.Web.UI;
  8通用SQL分页程序using System.Web.UI.WebControls;
  9通用SQL分页程序using System.Web.UI.WebControls.WebParts;
 10通用SQL分页程序using System.Web.UI.HtmlControls;
 11通用SQL分页程序using System.Data.SqlClient;
 12通用SQL分页程序using System.Text;
 13通用SQL分页程序public partial class 数据分页DEMO_DefaultDataGrid : System.Web.UI.Page
 14

相关文章:

  • 2021-09-27
  • 2021-09-17
  • 2022-12-23
  • 2022-12-23
  • 2022-02-22
  • 2021-05-26
猜你喜欢
  • 2021-06-30
  • 2021-07-16
  • 2021-08-08
  • 2022-02-19
  • 2022-12-23
  • 2022-12-23
  • 2022-02-04
相关资源
相似解决方案