private void Action_PurgeHistory() { Collection iSrc = new Collection(); bool bRet; string ErrorString = ""; string datePurge = DateTime.Today.ToShortDateString(); try { m_contentRef = m_refAPI.EkContentRef; if (Request.Form["frm_purge_date"] != "") { datePurge = Request.Form["frm_purge_date"]; } iSrc.Add(datePurge, "PurgeDate", null, null); m_FolderId = System.Convert.ToInt64(frm_folder_id.Value); iSrc.Add(m_FolderId, "FolderID", null, null); if (this.chkRecursivePurge.Checked) { iSrc.Add(1, "Recursive", null, null); } else { iSrc.Add(0, "Recursive", null, null); } if (this.chkPurgePublished.Checked) { iSrc.Add(1, "IncludePublished", null, null); } else { iSrc.Add(0, "IncludePublished", null, null); } bRet = m_contentRef.PurgeContentHitory(iSrc, ErrorString); if (ErrorString == "") { Response.Redirect((string) ("content.aspx?action=ViewFolder&id=" + m_FolderId), false); } } catch (Exception ex) { Utilities.ShowError(ex.Message); } }