Currently, I am in the process of building a page that involves creating a large number of files within a folder. Once the task is completed, I compress the folder into a zip file and provide the client with a download link. To keep track of these files, I save the list of files in a database, process one file at a time, mark it as complete in the database, and then use Response.Redirect to return to the same page. The process continues until all entries are processed.
Unfortunately, I am facing issues with my page timing out. I am exploring options such as adding code to prevent timeouts or potentially using JavaScript for redirection. My goal is to avoid rendering the page to the client repeatedly.
I have attempted setting the timeout in the page init class by using Server.ScriptTimeout = 60 * 60 * 60, but this did not resolve the issue.