//设置分页控件的总记录方法 private void SetAspNetPagerRecordCountByPro() { this.AspNetPagerByProducts.RecordCount = ProductsDAL.SelectProductByConditionRowsCount(dwlProductCategory.SelectedItem.Value, this.AspNetPagerByProducts.PageSize, this.AspNetPagerByProducts.CurrentPageIndex); }