随笔分类 -  c#之分页技术

摘要:public static DataTable GetPagedTable(DataTable dt, int PageIndex, int PageSize){ if (PageIndex == 0) return dt; DataTable newdt = dt.Clone(); //newdt.Clear(); int rowbegin = (PageIndex - 1) * PageSiz... 阅读全文
posted @ 2009-06-16 00:24 X-Jonney 阅读(380) 评论(0) 推荐(0)
摘要:在一篇文章过长时,可以自动的写个小程序对其进行分页.具体代码:[代码] 阅读全文
posted @ 2009-05-14 14:22 X-Jonney 阅读(297) 评论(0) 推荐(0)
摘要:CREATE procedure main_table_pwqzc(@pagesize int,@pageindex int,@docount bit,@this_id)asif(@docount=1)beginselect count(id) from luntan where this_id=@this_idendelsebegindeclare @indextable table(id in... 阅读全文
posted @ 2009-05-14 14:20 X-Jonney 阅读(264) 评论(0) 推荐(0)