挽弓如月

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

2013年3月18日

摘要: *使用not in进行分页 View Code select top记录条数size* from Book where id not in ( select top ( 页数pageIndex-1 ) 记录条数sizeid from Book order by id asc ) order by id asc 那么需要显示所有记录的页数page为:page=(m%n)==0?(m/n):(m/n+1);*使用ROW_NUMBER()进行分页 View Code select * from ( select ROW_NUMBER() over (order by id asc ) as r... 阅读全文
posted @ 2013-03-18 10:04 挽弓如月 阅读(214) 评论(0) 推荐(0)

摘要: .cs按钮事件: string sbHtmltext = WBdata.DocumentText;//获取所有页面元素 GetColomnNumAndName(sbHtmltext);//获取栏目 GetValue(sbHtmltext);//获取数据 try { if (dt != null && dt.Rows.Count > 0)//判断数据源是否为空 { string descTableName = "result_南京_" + txttablename.Text.Trim(); ... 阅读全文
posted @ 2013-03-18 09:57 挽弓如月 阅读(526) 评论(0) 推荐(0)