c# - How to point a page to a different web.config? -
is possible page in asp .net point different web.config? example, have 2 different config files, 1 web.config , other 1 web1.config. how can point page web1.config in asp .net?
from know, cannot point page different web.config file. however, can organize web site/application sub-folders, 1 main web.config file @ root folder , new web.config file in sub-folder sub-folder specific settings. can make copy of sub-folder , modify web.config different settings.
instead of making copy of files, idea have set virtual directory in sub-folder can reuse same web site/application , control different web.config files. have not tried before, think it's worth try!
web.config inheritance , overrides
each web.config file applies configuration settings directory in , of child directories below it. settings in child directories can optionally override or modify settings specified in parent directories. configuration settings in web.config file can optionally applied individual files or subdirectories specifying path in location element.
Comments
Post a Comment