protected void btnSelect_Click(object sender, EventArgs e) { string keyword = txtname.Value; DataTable dt2 = new userInfoBLL().GetByKeyWords(keyword); rpDetail.DataSource = dt2; rpDetail.DataBind(); }
protected void login_Click(object sender, EventArgs e) { string name = this.txtName.Text.Trim(); string pwd = this.txtPwd.Text.Trim(); bool boExit = new userInfoBLL().IsExit(name, pwd); if (boExit) { Response.Redirect("~/MemoManage.aspx"); } else { msg.Text = "登录姓名或密码错误!"; //Response.Redirect("~/Login.aspx"); } }