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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Looking for sample code to password protect pages using SQL 1

Status
Not open for further replies.

markdmac

MIS
Dec 20, 2003
12,340
US
I am hoping someone can point me in the direction of some sample code to add to my web site that will allow me to password protect some pages. I need to have a simple SQL database backend.

Visitors will enter an assigned USER ID and password on a login page. That will then bring them to another page which shows them a list of files. I need to be able to grab the User ID that was authenticated to be able to show the proper downloads for that customer.

I've used this reference in the past for classic ASP: but my pages are now ASP.Net and would prefer to try to learn a more modern approach.

I hope that helps.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
Unfortunatley I had already reviewed that link. The sample code doesn't use a SQL backend and while I am great as a scriptor I am lacking in development experience and am unsure how to modify the code to look to a database. There will be somewhere between 50-200 unique logins, so a database is really necessary for this application.

I hope that helps.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
The second link seems to be what I am looking for Gryphon451. Thanks to you both for your efforts.



I hope that helps.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top