如何动态创建web.config文件 [英] How to create a web.config file dynamically
本文介绍了如何动态创建web.config文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何动态创建web.config文件.说,如果一个用户创建了一个文件夹,我希望能够阻止其他用户浏览另一个使用文件夹.因此,我想使用适当的信息动态创建一个Web配置文件,以便只有创建该文件夹的用户才能b 浏览其内容,甚至可以查看该文件夹.
解决方案
您可以像创建任何文件一样创建web.config
文件.但是,要指定web.config
文件部分,请阅读 ASP.NET自定义Web配置部分 [ ^ ]
希望对您有所帮助.
^ ]
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.
解决方案
You can create theweb.config
file as same way you create any file. However to specify theweb.config
file sections please read ASP.NET Custom Web Configuration Section[^]
I hope this will help you well.
The proper way to do that is to add the appropriate settings to the site''s web.config.
Google search results[^]
这篇关于如何动态创建web.config文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文