private void BindCountDown() { DbQueryResult countDownList = PromoteHelper.GetAdOrderInfoList(new GroupBuyQuery { OrderId = this.OrderId, starttime = this.calendarStartDate.SelectedDate.HasValue ? this.StartTime.ToString() : "", endtime = this.calendarEndDate.SelectedDate.HasValue ? this.EndTime.ToString() : "", keyword = this.KeyWord, PageIndex = this.pager.PageIndex, PageSize = this.pager.PageSize, SortBy = "OrderTIme", SortOrder = SortAction.Desc }); this.grdCountDownsList.DataSource = countDownList.Data; this.grdCountDownsList.DataBind(); this.pager.TotalRecords = countDownList.TotalRecords; this.pager1.TotalRecords = countDownList.TotalRecords; }