.NET Framework 1.xFor discussing versions 1.0 and 1.1 of the Microsoft .NET Framework.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the .NET Framework 1.x section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Following code on the webconfig inside system.web tag
won't allow any one to access our page without authorization
<system.web>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
If you want to allow user to certain pages means
use the following code
Hi ,you have 2 options .
1) Either put all the files to be resticted in seperate folder and in that folder u create web.config and put the code as vinodhanandhan
said.
2)u can use the LOCATION element to apply settings for partiular folder or page