temp filenames

G

Guest

hey all,

i have a webform that does some light server processing which creates a
temporary text file for downloading to the client. What's the best way to do
this?

If many people are going to access this page, what's the best way to keep
all the temp files related to the correct user?

thanks,
rodchar
 
H

Hans Kesting

hey all,
i have a webform that does some light server processing which creates a
temporary text file for downloading to the client. What's the best way to do
this?

If many people are going to access this page, what's the best way to keep
all the temp files related to the correct user?

thanks,
rodchar

If it's a single file (or a limited number) per session, then you could
keep the contents in Session. Provide some Upload.aspx to stream the
contents to the user.

If you really want to go for files, then you could use a Guid to
generate a filename. But: using files also means
a) write access to some directory on the site,
b) some way to deleted "old" files.


Hans Kesting
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,143
Latest member
DewittMill
Top