Code SoftPager.RecordCount = Data.SqlHelper.GetDataTable(Data.SqlHelper.GetConnectString(), CommandType.Text, "select * from softsales").Rows.Count;
string sql =string.Format("select * from (select row_number() over(order by id desc)as Row,* from softsales )temp where Row between {0} and {1} order by id desc", SoftPager.StartRecordIndex,SoftPager.EndRecordIndex);
RepSoft.DataSource = Data.SqlHelper.GetDataTable(Data.SqlHelper.GetConnectString(), CommandType.Text, sql);
RepSoft.DataBind();
,这个送给你!
posted on
2008-12-29 17:17︷起↘嚸.
阅读(120)
评论(0)
编辑收藏举报