多个web.config文件 [英] multi web.config files

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

问题描述

我是lakshman,我想在我的Web应用程序中使用多个web.config文件.但是在这里,我不确定是否有可能,如果可能的话,如何为特定的.aspx页面分配特定的web.config文件.

Hi this is lakshman, i want to use multiple web.config files in my web application. but here i am not sure it is possible, if possible how to assign a particular web.config file for the particular .aspx page.

推荐答案

AFAIK的唯一方法是可以将它们保存在不同的文件夹中-每个文件夹都可以拥有自己的web.config,并且设置向下继承,而在新设置中不会被覆盖.
这通常用于限制对授权人员的访问:
根目录中包含default.aspx和Logon.aspx
需要登录用户的页面位于子目录中.
The only way AFAIK is to keep them in different folders - each folder can have it''s own web.config, and the settings are inherited downward where not overridden in the new.
This is normally used to restrict access to authorized persons:
default.aspx and Logon.aspx ate in the root
pages which need logged in users are in sub directories.


您不能直接在单个应用程序中使用多个web.config文件. 如果您的应用程序包含文件夹,则可以为每个文件夹使用一个web.config文件以及应用程序中的web.config文件.
You can not use multiple web.config files directly in single application.
If your application contains folders then you can use one web.config file for each folder along with web.config file in application.


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

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