Author: Monesh | Posted on: 9/28/2008 10:52:24 PM | Views : 499

I am writing excel file. After that it is saved in the server and a window pops up asking the user for action(save, open, cancel). If I put file.Delete(filename) code to delete the file. I am unable to see the pop up and program is not executing properly.If I remove file deletion code its again working properly. I have put the code below:

Response.ClearHeaders();

Response.Clear();
Response.ContentType = "application/vnd.ms-excel";
Response.AppendHeader("ContentType", "application/vnd.ms-excel");
Response.AddHeader("Content-Disposition", "attachment; filename=& ...

Go to the complete details ...