易截截图软件、单文件、免安装、纯绿色、仅160KB

asp.net (c#) MySQL 大数据快速分页

aspx页:
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True"
OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" CssClass="b">
<asp:ListItem Value="5">5 per page</asp:ListItem>
<asp:ListItem Selected="True" Value="10">10 per page</asp:ListItem>
<asp:ListItem Value="50">50 per page</asp:ListItem>
</asp:DropDownList> --每页显示条数
<asp:Label ID="lbpageof" runat="server"></asp:Label> --显示方式
<asp:LinkButton ID="lbpre" runat="server" CommandArgument="prev" OnClick="PagerButtonClick">Previous</asp:LinkButton> --前一页
<asp:LinkButton ID="lbnext" runat="server" CommandArgument="next" OnClick="PagerButtonClick">Next</asp:LinkButton> --后一页
<asp:LinkButton ID="lbpre2" runat="server" CommandArgument="prev" OnClick="PagerButtonClick">Previous</asp:LinkButton> --前一页2
<asp:LinkButton ID="lbnext2" runat="server" CommandArgument="next" OnClick="PagerButtonClick">Next</asp:LinkButton> --后一页2
<input id="hid_CurrentIndex"
runat="server" type="hidden" /> --索引数
cs:
hid_CurrentIndex.Value = "0"; 初始化为0
首先给出_sqlStr(sql语句)
DataSet ds;
通过程序得到一个(ds)Dataset
ds = _db.GetDataSet(_sqlStr + " limit " + (Convert.ToInt64(hid_CurrentIndex.Value) * Convert.ToInt64(DropDownList1.SelectedValue)) + "," +
DropDownList1.SelectedValue); --DropDownList1.SelectedValue1的值为每页显示条数
GridView1.PageSize = 10;
GridView1.DataSource = ds.Tables[0].DefaultView;
GridView1.DataBind();
linkbttonenableset();
private void linkbttonenableset()
{
try
{

double dblTotalRecords = Convert.ToDouble(取得总的记录行数单独写个sql_count);


相关文档:

一个简单的ASP.NET +ACCESS 登录

首页:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!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 ......

ASP.NET的ACCESS数据库操作类

//private string datapatch = ConfigurationSettings.AppSettings["acessconn"];//数据库地址 
private string datapatch = "db/global.asa";//数据库地址 
/// 
/// 取得dataset 
// 
/// 查询语句 
/// 
public DataSet GetDataSet(string Commandtext) 
{&nbs ......

C#: 提取网页中的javascript代码

public static void Main()
        {
            WebRequest req = WebRequest.Create("http://blog.csdn.net/xiaofengsheng");
            try
  & ......

jira+tomcat+mysql的集成

以前没接触过这个东东,前天一个同事让我安装下jira+confluence,但是confluence弄了好长时间也没集成成功!现在把上述三者的集成过程总结下!
安装环境:
系统:xp sp2 
jdk:  1.6
tomcat: 5.5 安装版   (可以用解压版的)
MySql: 5.0.x
所需软件:
jiar: atlassian-jira-enterprise-3.9.3.zi ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号