Click to See Complete Forum and Search --> : Display Files in a Folder. Please Help!


the_future21
11-09-2006, 09:11 AM
Is there a way in ASP.Net 2.0 to display the contents of a folder so people can download the files in the folder.

Also I would like to password protect each individual file before it is downloaded. After you click the link to download a file it would prompt you for a password. is this possable?

Suggestions Please.

Thank you for all the help.

sirpelidor
11-09-2006, 10:38 AM
1) system.io.directory.getFiles (http://msdn2.microsoft.com/en-us/library/system.io.directory.getfiles.aspx)

2) it would be better if you further clarify your second question, such as.... -

-when user successfully authenticated into your site (i assume they need to authenticate) do they still need re-enter their password again?

-password protect based on role?

the_future21
11-09-2006, 02:29 PM
the user does not need to log-in to the site. the files will be displayed for anyone to view, but to download the file they need they will need a password associated with that file. each file will have a password created by the person who uploaded the file.

THanks for your help

sirpelidor
11-09-2006, 02:48 PM
the files will be displayed for anyone to view



i'm afraid that as long as the file can be view through a browser, it will be pointness to add password protection because the actual copy already cached in the client's machine....