D
David Thielen
Hi;
I have a 2 page wizard and on page 0 I have a FileUpload control. In my
OnNextButtonClick for page 0 I need to read in the file because that stream
is gone when the user clicks Finish on page 1.
What is the recomended way to do this? The best I have come up with is to
read it in to a byte[] and attach that to the session. (I have session data
stored on the server, not as hidden data on the client page.)
I thought of saving it as a temp file - but how do I get the file deleted if
they never click Finish or Cancel? I don't want a boatload of abondened files
building up in the temp directory.
I have a 2 page wizard and on page 0 I have a FileUpload control. In my
OnNextButtonClick for page 0 I need to read in the file because that stream
is gone when the user clicks Finish on page 1.
What is the recomended way to do this? The best I have come up with is to
read it in to a byte[] and attach that to the session. (I have session data
stored on the server, not as hidden data on the client page.)
I thought of saving it as a temp file - but how do I get the file deleted if
they never click Finish or Cancel? I don't want a boatload of abondened files
building up in the temp directory.