Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Database Authentication

Status
Not open for further replies.

blueark

Technical User
Apr 16, 2002
1,212
IE
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.
 
Keyword search is back... found what I was looking for!

I didn't realise there was a <location> tag in web.config. Told you I was new to this stuff!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top