//搜索 protected void ibtnSearch_Click(object sender, ImageClickEventArgs e) { if (this.txtValue.Text == "") { ClientScript.RegisterStartupScript(this.GetType(), "Error", "<script>alert('关键字不能为空!');</script>"); return; } List <Account> list = AccountsManager.GetAccountBycondition(this.ddlKind.SelectedValue, this.txtValue.Text); PageIndex = 0; repAccounts(list); }