password protect subdirectory and files within

From: dustin (englishman11@hotmail.com)
Date: 10/28/02


From: englishman11@hotmail.com (dustin)
Date: 28 Oct 2002 03:00:00 -0800


Hi,

I'm upgrading from ASP 3.0 to ASP.NET and would like to know if
ASP.NET has introduced anything new to help protect files within a
subdirectory to see if you are a valid user which has logged into the
web application.

Requirements.

Users to browse site normally. However, when trying to go directly to
a file within the protected subdirectory, without having first logged
in, get an automatic faliure response, therefore not displaying the
file requested.

e.g. URL: -- > www.mydomain.com/protectedsubdirectory/protectedFile.pdf

response --> sorry, you must be logged in first

Once logged in however using a MS SQL server to check username and
password, I would like for the members to be able to browse freely
through the protected subdirectory.

I would not only like to protect aspx file, I would really like to
protect any files in the protected subdirectory.

Is there an easy way to do this? and if not could someone point me in
the right direction as to tutorials, URL links, or documentation on
this subject please.

thanks

dustin_kovich
(Student of Life)