hi
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)
Secret.txt
web.config
- Default.aspx
Default.aspx.cs
web.config
I was googling for come over this but i am unable
I wrote inside web.config(NewFolder1) file:
<system.web>
<authorization>
<deny users="*"/>
</authorization>
</system.web>
and some where i found to do like
<location path="NewFolder1">
<system.web>
<authorization>
<deny users="*"/>
</authorization>
</system.web>
</location>
but still the same please suggest me how would i come across the problem.
Thanks.