Example #1
0
        private void BindSpreaderInfoData()
        {
            int sPageIndex = anpPage.CurrentPageIndex;
            int sPageSize  = anpPage.PageSize;

            DataSet ds = treasureFacade.GetUserSpreaderList(Fetch.GetUserCookie().UserID, sPageIndex, sPageSize);

            anpPage.RecordCount = Utility.StrToInt(ds.Tables[0].Rows[0]["Records"], 0);

            if (ds.Tables[1].Rows.Count > 0)
            {
                this.rptSpreaderList.DataSource = ds.Tables[1];
                this.rptSpreaderList.DataBind();

                this.rptSpreaderList.Visible = true;
                this.trNoData.Visible        = false;
            }
            else
            {
                this.rptSpreaderList.Visible = false;
                this.trNoData.Visible        = true;
            }
        }