protected void Submit_Click(object sender, EventArgs e) { member.Id = id; member.Name = Name.Text; if (Man.Checked == true) { member.Sex = Man.Text; } else { member.Sex = Woman.Text; } member.JoinYear = Convert.ToInt32(JoinYear.Text); member.QQ = QQ.Text; member.Tel = Tel.Text; member.Dept = Team.Text + "<br/>" + Dept.Text; member.Duty = Duty.Text; if (IsFinish()) { member.IsFinish = 1; } else { member.IsFinish = 0; } if (info.Update(member)) { Response.Write("<script language='javascript'>alert('修改成功!')</script>"); } else { Response.Write("<script language='javascript'>alert('修改失败!')</script>"); } DataList1.DataSource = info.GetAll(); DataList1.DataBind(); }
public int Update(Member m) { return(de.Update(m)); }