protected void btnUpdateGDVCheck_Click(object sender, EventArgs e) { try { //mClaimID = Session["ThamChieu"].ToString(); //int claimID = int.Parse(mClaimID); Button btn = (Button)sender; string key = btn.Attributes["key"]; DropDownList drValue = (DropDownList)FindControl("dr" + key); int id = int.Parse(drValue.SelectedValue.ToString()); string title = "FFR'signature checker"; bool up = claimDao.UpdateCheckFFR(mClaimID, id); if (up == true) { loadSIGNCheck(mClaimID); } else { Response.Write("<script> alert('Update preparer error!');</script>"); } int maGDV = int.Parse(Request.Cookies["MaGDV"].Value); GiamDinhVienDAO gdv = new GiamDinhVienDAO(); string noidung = gdv.LayTenTheoMa(maGDV) + " edited " + title + " of " + mClaimID + "."; SaveLogTracking(maGDV, noidung, mClaimID); Response.Redirect(Request.RawUrl + "#" + key); } catch (Exception ex) { Response.Write("<script>alert('Error', 'Error update data');</script>"); } }