Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Yes, any configuration <strong>section</strong> can be "externalized" - this includes things like <code>&lt;appSettings&gt;</code>, <code>&lt;connectionStrings&gt;</code> and many more.</p> <p>You'd have something like this in your web.config:</p> <pre><code>&lt;configuration&gt; &lt;appSettings configSource="appSettings.config" /&gt; &lt;connectionStrings configSource="connectionStrings.config" /&gt; &lt;system.web&gt; &lt;pages configSource="pages.config" /&gt; &lt;httpHandlers configSource="httphandlers.config"&gt; &lt;/system.web&gt; &lt;/configuration&gt; </code></pre> <p>The externalized config's would just contain that one subsection in them:</p> <p>httphandlers.config:</p> <pre><code>&lt;httpHandlers&gt; &lt;remove verb="*" path="*.asmx"/&gt; &lt;add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/&gt; &lt;add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/&gt; &lt;add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/&gt; &lt;/httpHandlers&gt; </code></pre> <p>Note you cannot externalize the entire <code>&lt;system.web&gt;</code> part, since that is a configuration <strong>section group</strong> - not a configuration section - but you can externalize most of the sub-sections contained in system.web.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload