Example #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                labPageIndex.Text = "1";
                StrWhere          = "";
                int recordCount = _bll.GetRecordCount(StrWhere);
                int pageCount   = recordCount / PageSize;
                if (recordCount == 0 || recordCount % PageSize != 0)
                {
                    pageCount++;
                }
                labPageCount.Text = pageCount.ToString();
                labCount.Text     = recordCount.ToString();
                BindDevs();

                btnSubmit.Attributes.Add("OnClick", "return search()");
                //}
            }
        }
Example #2
0
        private int GetPageCount(string strWhere)
        {
            int ret = bll.GetRecordCount(strWhere);

            return(ret);
        }