//搜索按钮 protected void Button4_Click(object sender, EventArgs e) { string keywords = this.KeyBox.Text.Trim().Replace("%", ""); if (keywords == "") { Utility.Alert(this, "关键字不能为空!"); return; } this.TypeHid.Value = "1"; DataTable dt = UserAccess.GetAdminUserListByKeywords(keywords); AdminList.AllowPaging = false; AdminList.PageIndex = 0; AdminList.DataSource = dt; AdminList.DataBind(); this.Label1.Text = "记录:" + dt.Rows.Count; }