Exemplo n.º 1
0
        private void Bind()
        {
            int totalCount = 0;

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

            rpData.DataSource = bll.GetDataSet(1, 10, out totalCount, "", null);;
            rpData.DataBind();
        }
Exemplo n.º 2
0
        private void Bind()
        {
            //查询条件
            GetSearchItem();

            int totalCount = 0;

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

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