Click here to Skip to main content
11,639,861 members (62,861 online)
Rate this: bad
Please Sign up or sign in to vote.
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 0:18am

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

  Print Answers RSS
0 Suvendu Shekhar Giri 270
1 CPallini 177
2 F-ES Sitecore 170
3 142
4 himanshu agarwal 142
0 OriginalGriff 9,081
1 Sergey Alexandrovich Kryukov 8,847
2 Mika Wendelius 7,027
3 Suvendu Shekhar Giri 2,650
4 F-ES Sitecore 2,558

Advertise | Privacy | Mobile
Web01 | 2.8.150731.1 | Last Updated 2 Aug 2012
Copyright © CodeProject, 1999-2015
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