Click here to Skip to main content
15,923,789 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can I create a web.config file on the fly. Say If a users creates a folder I want to be able to block other users to browse another use folders. So I want to dynamically create a web config file with the proper info so only the user that created the folder can browse its contents or even view the folder.
Posted
Updated 15-May-11 5:25am
v2

You can create the web.config file as same way you create any file. However to specify the web.config file sections please read ASP.NET Custom Web Configuration Section[^]

I hope this will help you well.
 
Share this answer
 
The proper way to do that is to add the appropriate settings to the site's web.config.

Google search results[^]
 
Share this answer
 
v2

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900