//submit data protected void Button1_Click(object sender, EventArgs e) { Hashtable ht = new Hashtable(); for (int i = 0; i < arr1.Length; i++) { ht.Add(arr1[i], Util.GetControlValue(this.depart.Parent.FindControl(arr1[i]))); } U_UserNameBU user1 = new U_UserNameBU(); bool result = user1.EditUserData(Request["id"], ht); user1.Close(); //更新其他读者的数据 user1.SetOthersReaders(this.sname.Text, this.leader1.Text); if (result) { Response.Redirect("UserMng.aspx", true); } else { Util.alert(this.Page, "错误提示:修改数据错误!"); } }