Beispiel #1
0
        private void BindRelatedProducts()
        {
            Pagination page = new Pagination();

            page.PageSize  = 10;
            page.PageIndex = this.pagerSubject.PageIndex;
            page.SortOrder = SortAction.Desc;
            page.SortBy    = "DisplaySequence";
            DbQueryResult relatedProducts = SubSiteProducthelper.GetRelatedProducts(page, this.productId);

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