Example #1
0
        private void BindGifts()
        {
            GiftQuery query = new GiftQuery();

            query.Page.PageSize  = 10;
            query.Page.PageIndex = this.pager.PageIndex;
            query.Name           = this.txtSearchText.Text.Trim();
            DbQueryResult gifts = SubsiteSalesHelper.GetGifts(query);

            this.dlstGifts.DataSource = gifts.Data;
            this.dlstGifts.DataBind();
            this.pager.TotalRecords = gifts.TotalRecords;
        }
Example #2
0
        private void BindGifts()
        {
            DbQueryResult gifts = SubsiteSalesHelper.GetGifts(new GiftQuery
            {
                Page =
                {
                    PageSize  = 10,
                    PageIndex = this.pager.PageIndex
                },
                Name = this.txtSearchText.Text.Trim()
            });

            this.dlstGifts.DataSource = gifts.Data;
            this.dlstGifts.DataBind();
            this.pager.TotalRecords = gifts.TotalRecords;
        }