protected void DropDownDonVi_SelectedIndexChanged(object sender, EventArgs e) { string drop = DropDownDonVi.SelectedValue.ToString().Trim(); if (drop != "0") { HienThiListTimTuDropDow(); } else { ListQuery.DataSource = null; ListQuery.DataBind(); } }
protected void txtUserName_TextChanged(object sender, EventArgs e) { string NVMa = txtUserName.Text.Trim(); if (NVMa != "") { HienThiListTimTuTextBox(); txtUserName.Text = ""; } else { ListQuery.DataSource = null; ListQuery.DataBind(); } }
public void HienThiListTimTuTextBox1() { string MaNV = txtUserName.Text; DataTable dt = dalUser.TImNguoiTheoDieuKien(MaNV); if (dt.Rows.Count > 0) { ListQuery.Visible = true; listXuLy.Visible = true; ListQuery.DataSource = dt; ListQuery.DataBind(); } else { ListQuery.DataSource = null; ListQuery.DataBind(); } }
public void HienThiListTimTuTextBox() { string MaNV = txtUserName.Text; DataTable dt = dalUser.TimNhanVienTheoMa(Congty, MaNV); if (dt.Rows.Count > 0) { ListQuery.Visible = true; listXuLy.Visible = true; ListQuery.DataSource = dt; ListQuery.DataBind(); DivList.Visible = true; } else { ListQuery.DataSource = null; ListQuery.DataBind(); } }
public void HienThiListTimTuDropDow() { string MaDV = DropDownDonVi.SelectedValue; DataTable dt = dalUser.TimNhanVienTheoMaDonVi(Congty, MaDV); if (dt.Rows.Count > 0) { ListQuery.Visible = true; listXuLy.Visible = true; ListQuery.DataSource = dt; ListQuery.DataBind(); DivList.Visible = true; } else { ListQuery.DataSource = null; ListQuery.DataBind(); } }