コード例 #1
0
        private void BindDataList(string activityID)
        {
            QueryParam qp = new QueryParam();

            qp.PageIndex = AspNetPager1.CurrentPageIndex;
            qp.PageSize  = AspNetPager1.PageSize;

            int RecordCount = 0;

            DataSet ds = null;

            if (ddlGame.SelectedValue != "-1")
            {
                activityID += " and left(a.ZoneServerID,3)=" + ddlGame.SelectedValue + " ";
            }

            ds = BusinessFacadeDLT.ActivityOrderSelectDel(qp.PageIndex, qp.PageSize, activityID);

            GridView1.DataSource = ds.Tables[0];
            GridView1.DataBind();
            GridView1.Visible             = true;
            AspNetPager1.Visible          = true;
            RecordCount                   = int.Parse(ds.Tables[1].Rows[0][0].ToString());
            this.AspNetPager1.RecordCount = RecordCount;
        }