Esempio n. 1
0
 private void BindData(string keyword)
 {
     B_User bll = new B_User();
     IList<string> list = bll.GetUserNameList(this.CurrentPageIndex, this.PageSize, keyword);
     if (list.Count == 0)
     {
         this.DivAdd.Visible = false;
         this.DivUserName.Visible = true;
     }
     else
     {
         this.DivUserName.Visible = false;
     }
     this.RepUser.DataSource = list;
     int RecordCount = bll.GetUserNameListTotal(keyword);
     this.pager1.InnerHtml = function.ShowPage(RecordCount, this.PageSize, this.CurrentPageIndex, true, "个");
     this.RepUser.DataBind();
 }