/// <summary> /// 分页绑定 /// </summary> private void ByMat() { AspNetPager1.RecordCount = tb_matrl_main.GetRecordCount(txtMatCode.Value, txtGRD.Value, txtSpec.Value); if (AspNetPager1.RecordCount > 0) { GetMatList(); } else { rptMat.DataSource = null; rptMat.DataBind(); } }