Hi,
When I used classic ASP, I was able to create a database of users/passwords, and if I wanted to password protect a page, I could simply include a file (say, 'checkpassword.asp'). Now I'm trying to do something similar in ASP.NET, but I can't find the right information anywhere.
Here's the problem: the hosting company will only allow me to use one web.config file on my site, and it must be placed in the root directory. That means that forms authentication as I understand it is out. I only want to protect certain files/folders, but any of the authentication techniques I've read about use web.config and will protect all files.
Can anyone point me in the right direction or give me a link that I can check out? I'm pretty new to ASP.NET and the keyword search doesn't seem to be working right now, so forgive me if this has been answered a million times before!
Thanks in advance.
When I used classic ASP, I was able to create a database of users/passwords, and if I wanted to password protect a page, I could simply include a file (say, 'checkpassword.asp'). Now I'm trying to do something similar in ASP.NET, but I can't find the right information anywhere.
Here's the problem: the hosting company will only allow me to use one web.config file on my site, and it must be placed in the root directory. That means that forms authentication as I understand it is out. I only want to protect certain files/folders, but any of the authentication techniques I've read about use web.config and will protect all files.
Can anyone point me in the right direction or give me a link that I can check out? I'm pretty new to ASP.NET and the keyword search doesn't seem to be working right now, so forgive me if this has been answered a million times before!
Thanks in advance.