protected void chkToDay_CheckedChanged(object sender, EventArgs e) { string strCookieKey = "NOTICE_" + this.INoticeRefID.ToString(); if (Request.Cookies[strCookieKey] != null) { //쿠키값이 존재하면 삭제하고 다음날로 다시 설정 Response.Cookies[strCookieKey].Expires = DateTime.Now.AddDays(-1); Response.SetCookie(new HttpCookie(strCookieKey, this.INoticeRefID.ToString())); Response.Cookies[strCookieKey].Expires = DateTime.Now.AddDays(1); } else { Response.SetCookie(new HttpCookie(strCookieKey, this.INoticeRefID.ToString())); Response.Cookies[strCookieKey].Expires = DateTime.Now.AddDays(1); } ltrScript.Text = JSHelper.GetCloseScript(); }