Say your website has two types of pages, public pages and restricted pages(which requires authentication). You have to create "members" virtual-directory inside root directory in IIS. Then you have to apply different security settings for pages in member directory by creating separate web.config for it.
Your root Directory's web.config file
<configuration>
<system.web>
<authentication mode="Forms">
<!--put your forms authentication params here-->
<forms name=".ASPNET"
loginUrl="~/Login.aspx"
defaultUrl="~/Member_Detai
protection="All" timeout="15" path="/"/>
</authentication>
</system.web>
</configuration>
<!--Members directory's web.config file-->
<configuration>
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</configuration>
Let me know if you have any doubts.
MaulikCE
Main Topics
Browse All Topics





by: x_comPosted on 2007-06-30 at 08:52:21ID: 19396182
Dear deloused,
e.com/Prog ramming/La nguages/.N ET/ ASP.NET /Q_2265315 8.html
You can spesify preferred authenticated foldername instead of pathname inside authentication area as mentioned above.
eg:
<location path="members">
However, if you want to authenticate separate folder under root folder, you can see how it work here:
http://www.experts-exchang