Factoring Configuration(nikhilk.net)

submitted by crpietschmanncrpietschmann(11.3k) 4 years, 9 months ago

A little known attribute, configSource, enables some level of configuration factoring and splitting for the ever-growing web.config...

1 comment |category: |Views: 4

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by crpietschmanncrpietschmann(11.3k) 4 years, 9 months ago 0

For example, here's what I can put into my web.config:

...
<system.web>
...
<profile configSource="profile.config" />
...
</system.web>
...

Once I've done that, I can now add a profile.config file into my web site as follows:
<profile>
<properties>
<add name="Name" type="String" />
<add name="Age" type="Int32" />
</properties>
</profile>

Reply

information Login or create an account to comment on this story