RemoveTempFile.aspx.cs 1.0 KB

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using CLIP.eForm.Consent.WebService;
  3. namespace CLIP.eForm.Consent.Web
  4. {
  5. public partial class RemoveTempFile : System.Web.UI.Page
  6. {
  7. protected void Page_Load(object sender, EventArgs e)
  8. {
  9. }
  10. protected void btnDelete_Click(object sender, EventArgs e)
  11. {
  12. using (ConsentSvc svc = new ConsentSvc())
  13. {
  14. //int iResult = svc.DeleteTempFile(this.calendar1.SelectedDate.Date.AddDays(-1).ToShortDateString());
  15. //if (iResult == 1)
  16. //{
  17. // System.Text.StringBuilder sb = new System.Text.StringBuilder();
  18. // sb.Append("<script type = 'text/javascript'>");
  19. // sb.Append("window.onload=function(){");
  20. // sb.Append("alert('임시파일이 삭제되었습니다.')};");
  21. // sb.Append("</script>");
  22. // ClientScript.RegisterClientScriptBlock(this.GetType(), "alert", sb.ToString());
  23. //}
  24. }
  25. }
  26. }
  27. }