Do you need to keep a copy of the file? If it is generated "on the fly" and
they download it at the time they request it, can you just keep the file as
a fileStream?
I do something similar. When they request the file, I'll pop-up another
..aspx page with a parameter or session var that has the information on what
to create in the file. The new .aspx page will clear the output, and stream
out the file. This will prompt the user to download the file without
actually showing another window to open and not losing the page they are on.
Would something like that work?
-Darrin
"Paul" <cg***@hotmail.com> wrote in message
news:u5**************@TK2MSFTNGP11.phx.gbl...
I need a way of creating a custom file which can be downloaded by a user.
The file needs to be customized pre user (ie serial number built in).
Creating the file is no problem. The problem is how can several files be
created at the same time (ie several users logged in to the web site at
once wanting to download their file). A temporaty file can easily be
created, but how does the file get deleted after the user downloads it (or
aborts the download), and how can the file name be the same for all users?