如何动态创建web.config文件 [英] How to create a web.config file dynamically

查看:80
本文介绍了如何动态创建web.config文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何动态创建web.config文件.说,如果一个用户创建了一个文件夹,我希望能够阻止其他用户浏览另一个使用文件夹.因此,我想使用适当的信息动态创建一个Web配置文件,以便只有创建该文件夹的用户才能b 浏览其内容,甚至可以查看该文件夹.

解决方案

您可以像创建任何文件一样创建web.config文件.但是,要指定web.config文件部分,请阅读 ASP.NET自定义Web配置部分 [ ^ ]

希望对您有所帮助.
解决方案

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.


The proper way to do that is to add the appropriate settings to the site''s web.config.

Google search results[^]


这篇关于如何动态创建web.config文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆