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

Authentication

Status
Not open for further replies.

wallm

Programmer
Apr 4, 2005
69
GB
If I use the login control all the users that are authenticated are sent to default.aspx.
How Can I send a user e.g. 'Dave12' to a protected folder 'admin' and a particular page 'admin.aspx' within that folder once he has logged in?


I've a bit of an idea to place a web.config file in the folder 'admin' with the following code

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.web>
<authorization>
<allow users="Dave12" />
<deny users="*" />
</authorization>
</system.web>
</configuration>

I also think that an authenicate event might be needed.
I'd appreciate any help.

thanks,
Michael.
 
>>If I use the login control all the users that are authenticated are sent to default.aspx.


wht authentication are u using???

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top