2008年8月19日

DataGridView 36计

摘要: http://blog.csdn.net/hxj277/archive/2008/05/30/2497604.aspx 阅读全文

posted @ 2008-08-19 11:25 风乔 阅读(98) 评论(0) 推荐(0) 编辑

2008年8月12日

net导出excel方法汇总

摘要: 1、由dataset生成引用http://www.cnblogs.com/yknb/articles/434084.htmlpublic void CreateExcel(DataSet ds,string typeid,string FileName){HttpResponse resp;resp = Page.Response;resp.ContentEncoding = System.Tex... 阅读全文

posted @ 2008-08-12 08:50 风乔 阅读(192) 评论(0) 推荐(0) 编辑

2008年8月6日

同步customorder代碼

摘要: private void Tcustomer_Click(object sender, System.Web.UI.ImageClickEventArgs e) { SqlConnection con=new SqlConnection(ConfigurationSettings.AppSettings["cnn"]); con.Open(); s... 阅读全文

posted @ 2008-08-06 19:11 风乔 阅读(213) 评论(0) 推荐(0) 编辑

2008年8月5日

c#数据库调用类

摘要: Web.config文件: 类文件://connusing System;using System.Collections;using System.ComponentModel;using System.Data;using System.Data.SqlClient;using System.Drawing;using System.Web;using System.Web.Sessi... 阅读全文

posted @ 2008-08-05 10:39 风乔 阅读(325) 评论(0) 推荐(0) 编辑

2008年8月4日

datagrid存儲過程分頁完整實例

摘要: WebForm2.aspx页面WebForm2LinkButtonLinkButtonusing System;using System.Collections;using System.ComponentModel;using System.Data;using System.Data.SqlClient;using System.Drawing;using System.Web;using S... 阅读全文

posted @ 2008-08-04 09:39 风乔 阅读(144) 评论(0) 推荐(0) 编辑

百萬條數據分頁

摘要: 写出代码之前,先说明一下原理,比较简单。有一张表(test)如下 结构是:id(自动编号) txt 假设40条记录)现在要每页显示10条记录,则每页要显示的数据应该是:第一页:1----10第二页:11----20第三页:21----30第四页:31----40如要显示第一页,最简单的方法就是 select top 10 * from test 就OK了。第二页开始呢?怎么做呢?请接着看:比如... 阅读全文

posted @ 2008-08-04 09:27 风乔 阅读(124) 评论(0) 推荐(0) 编辑

2008年7月28日

DataGrid 存储过程分页

摘要: 阅读全文

posted @ 2008-07-28 10:14 风乔 阅读(129) 评论(0) 推荐(0) 编辑

2008年7月25日

DataGrid快速分页

摘要: cs:using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI... 阅读全文

posted @ 2008-07-25 15:36 风乔 阅读(136) 评论(0) 推荐(0) 编辑

2008年7月24日

DATALIST分页存储过程

摘要: 前段时间研究分页的时候,在CSDN的BLOG上看到了一位兄弟写的分页存储过程,发现非常好,于是,就使用了这个存储过程,下面是原版的分页存储过程 --开始 CREATE PROCEDURE GetRecordFromPage @tblName varchar(255), -- 表名 @fldName varchar(255), -- 字段名 @PageSize int = 10, -- 页尺寸 @P... 阅读全文

posted @ 2008-07-24 20:40 风乔 阅读(118) 评论(0) 推荐(0) 编辑

2008年7月23日

DataGrid 存储过程的分页詳解

摘要: 阅读全文

posted @ 2008-07-23 16:51 风乔 阅读(104) 评论(0) 推荐(0) 编辑

导航