protected void btnSaveA1_Click(object sender, EventArgs e) { string ma = GETMaThamChieu(); string text = txtA1.Text; bool up = cldao.UpdateA1(ma, text); if (up == true) { sm.sendNoiDungClaim("Report_Update", TenGDV(), text, "A1", ma); Response.Write("<script>alert('Updated !');</script>"); loadAll(ma); } else { Response.Write("<script>alert('Update Fail!');</script>"); } }
//SendMailDAO sm = new SendMailDAO(); protected void btnUpdateA1_Click(object sender, EventArgs e) { string ma = Session["ThamChieu"].ToString(); string text = txtA1.Text; bool up = cldao.UpdateA1(ma, text); if (up == true) { sm.sendNoiDungClaim("Report_Update", TenGDV(), text, "Introduction", ma); Response.Write("<script>alert('Updated !');</script>"); loadA1(ma); } else { Response.Write("<script>alert('Update Fail!');</script>"); } }