示例#1
0
        protected void btnDeleteAttachment_Click(Object Sender, EventArgs e)
        {
            string strFile = hypUpload.NavigateUrl;

            strFile = strFile.Substring(strFile.LastIndexOf("/") + 1);
            if (File.Exists(strFile) == true)
            {
                File.Delete(strFile);
            }
            oEnhancement.DeleteScreenshot(intID);
            Redirect("");
        }