Exemplo n.º 1
0
        private void BindSubjectProducts()
        {
            Pagination pagination2 = new Pagination();

            pagination2.PageSize  = 10;
            pagination2.PageIndex = pagerSubject.PageIndex;
            pagination2.SortOrder = SortAction.Desc;
            pagination2.SortBy    = "DisplaySequence";
            Pagination    page            = pagination2;
            DbQueryResult subjectProducts = SubSiteProducthelper.GetSubjectProducts(subjectType, page);

            dlstSearchProducts.DataSource = subjectProducts.Data;
            dlstSearchProducts.DataBind();
            pagerSubject.TotalRecords = subjectProducts.TotalRecords;
        }