Click here to Skip to main content
12,824,299 members (41,015 online)
Rate this:
Please Sign up or sign in to vote.
See more: .NET3.5 C# .NET WebForms C#4.0 , +
I have a folder in my root directory and it contain a text document.I want to restrict that document from being access.In my default.aspx page a button is present.
My folder structure looks like

- NewFolder1 (I want to restrict this folder)
- Default.aspx

I was googling for come over this but i am unable
I wrote inside web.config(NewFolder1) file:
       <deny users="*"/>

and some where i found to do like
<location path="NewFolder1">
        <deny users="*"/>

but still the same please suggest me how would i come across the problem.
Posted 2-Aug-12 1:18am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170308.1 | Last Updated 2 Aug 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100