asp.net - Moving Settings to another config file -


Is it possible to transfer application settings to another config file because it is possible with connection strings or app settings?

When I create the settings for my web application using the designer, my web.config receives an application settings section such as:

  & lt; Application settings & gt; & Lt; TestWebApplication.Properties.Settings & gt; & Lt; Setting name = "other setting" serializeAs = "string" & gt; & Lt; Value & gt; Another setting value & lt; / Value & gt; & Lt; / Settings & gt; & Lt; /TestWebApplication.Properties.Settings> & Lt; / ApplicationSettings & gt;  

I would like them to move to another file like App Settings:

  & lt; App settingsettings = "config \ appsettings.config" />  

I am working with a project that has a lot of settings through a class configured from the designer and the web. Configuring is a very difficult environment.

Is this possible?

Thank you in advance for help.

Waaay is late for this question, but I'm just against this one against the wall Beating the head. You can change it completely, not for the entire application settings node, you have to separately separate the nodes of each child in the app settings. I got the magic information from the lower part of the article.

app.config / web.config content

  & lt; Application settings & gt; & Lt; TestWebApplication.Properties.Settings configSource = "externalfile.config" /> & Lt; / ApplicationSettings & gt;  

externalfile.config content:

  & lt; TestWebApplication.Properties.Settings & gt; & Lt; Setting name = "other setting" serializeAs = "string" & gt; & Lt; Value & gt; Another setting value & lt; / Value & gt; & Lt; / Settings & gt; & Lt; /TestWebApplication.Properties.Settings>  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -