コード例 #1
0
ファイル: Default.aspx.cs プロジェクト: goodjob-666/rubbish
        /// <summary>
        /// 绑定数据
        /// </summary>
        private void BindDataList1()
        {
            QueryParam qp = new QueryParam();

            qp.Where     = SearchTerms1;
            qp.PageIndex = AspNetPager2.CurrentPageIndex;
            qp.PageSize  = AspNetPager2.PageSize;
            int RecordCount = 0;

            DataSet ds = BusinessFacadeDLT.ActivityAllOrderSelect(qp.PageIndex, qp.PageSize, qp.Where);

            GridView2.DataSource = ds.Tables[0];
            GridView2.DataBind();
            RecordCount = int.Parse(ds.Tables[1].Rows[0][0].ToString());
            this.AspNetPager2.RecordCount = RecordCount;
        }