Example #1
0
        private void Bind()
        {
            //查询条件
            GetSearchItem();

            if (pBll == null)
            {
                pBll = new BLL.Product();
            }
            int totalCount = 0;

            rpData.DataSource = pBll.GetDataSet(1, 1, out totalCount, sqlWhere, parms == null ? null : parms.ToArray());
            rpData.DataBind();
        }
Example #2
0
        private void Bind()
        {
            //查询条件
            GetSearchItem();

            int totalCount = 0;

            if (bll == null)
            {
                bll = new BLL.Product();
            }

            rpData.DataSource = bll.GetDataSet(AspNetPager1.CurrentPageIndex, AspNetPager1.PageSize, out totalCount, sqlWhere, parms == null ? null : parms.ToArray());;
            rpData.DataBind();
            AspNetPager1.RecordCount = totalCount;
        }