I have an application that collects data and puts it in a text file. When the data collection is complete the UI offers the user the opportunity to save or open the text file with a dialog box using this code: Response.Clear();
Response.AppendHeader("Content-Disposition", "attachment; filename=" + outputFilename + ";");
Response.ContentType = "text/plain";
Response.WriteFile(outputFilePath + outputFilename);
The problem is this. The starting interface allows the user to select a large number of data gathering points. If all are selected the program will run for about 90 minutes. Sometimes it will present the dialog box, sometimes not. Sometimes it will present the dialog box, but regardless of whether the user selects save or open, the dialog box simply disappears, and the data text file is neither displayed nor saved to the client system.
When fewer data gather points are selected, and the program runs for 15 minutes or less, there is no problem. The resulting data can be saved or displayed.
The actual data text file is initially stored in the temporary path directory on the web server. On at least one occasion, where the dialog box disappeared, I was able to
View Complete Post