Last post Feb 28, 2018 03:05 PM by rajesh93180
Jan 23, 2018 02:49 PM|sweetSteal|LINK
The supervisor can create a pdf file from a database.
The problem is after the file is created others user can access the pdf directly.
I want to murder url.pdf after 30 minutes. Thus no one can access it since its does not live anymore.
I do not have any experience doing this any ideas and suggestions would help.
//create file code above
string path = ResolveClientUrl("~/Appraisal/" + Empl.SelectedValue + ".pdf");
ClientScript.RegisterStartupScript(this.GetType(), "open", "window.open(" + encodedPath + ", '_blank');", true);
string location = Server.MapPath("~/Appraisal");
string delFile = location + "/" + Empl.SelectedValue + ".pdf";
catch (IOException iox)
Feb 28, 2018 03:05 PM|rajesh93180|LINK
Are you getting any error or exception while running your code? Please let me know if any error.