//更换用户所在的部门 void Button4_Click(object sender, EventArgs e) { String sname1 = Request.Form["selDoc"]; if (String.IsNullOrEmpty(sname1) == false) { U_UserNameBU bu1 = new U_UserNameBU(); bu1.ChangeUserDepart(sname1, this.depart.SelectedValue); this.BindData(); } }