protected void BindDataList(int page = 0) { this.employeeName = tbxEmployeeName.Text.ToString().Trim(); this.loginName = tbxLoginName.Text.ToString().Trim(); if (page > 0) { this.AspNetPager1.CurrentPageIndex = page; } int count = BPMHelp.GetEmployeesCount(this.employeeName, this.loginName); this.AspNetPager1.RecordCount = count; DataTable dt = BPMHelp.GetEmployeesList(this.employeeName, this.loginName, this.AspNetPager1.CurrentPageIndex, this.AspNetPager1.PageSize); lblUserList.DataSource = dt; lblUserList.DataBind(); }