Click here to Skip to main content
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 Sergey Alexandrovich Kryukov 521
1 OriginalGriff 349
2 DamithSL 235
3 Maciej Los 170
4 Bruno Sprecher 130
0 DamithSL 95
1 OriginalGriff 65
2 Gopu Raj 30
3 Mahsa Hassankashi 25
4 Raul Iloc 25

Advertise | Privacy | Mobile
Web03 | 2.8.141030.1 | Last Updated 2 Aug 2012
Copyright © CodeProject, 1999-2014
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