<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Quinterox &#187; configsource</title>
	<atom:link href="http://www.quinterox.com/content/tag/configsource/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.quinterox.com/content</link>
	<description>Cesar Quinteros</description>
	<lastBuildDate>Sun, 20 Jun 2010 04:51:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Using configSource</title>
		<link>http://www.quinterox.com/content/code/using-configsource/</link>
		<comments>http://www.quinterox.com/content/code/using-configsource/#comments</comments>
		<pubDate>Mon, 18 Aug 2008 02:39:03 +0000</pubDate>
		<dc:creator>Cesar Quinteros</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[asp]]></category>
		<category><![CDATA[configsource]]></category>
		<category><![CDATA[web.config]]></category>

		<guid isPermaLink="false">http://quinterox.com/code/?p=25</guid>
		<description><![CDATA[Example of how to allocate an external config file with connection string information to your main config file allowing you to harness the power of a more intricate way to manage user permissions.]]></description>
			<content:encoded><![CDATA[<p>In order to change configuration settings within an application without restarting and to harness the power of a more intricate ability to manage user permissions, it is ideal to store connection strings and other data in an external file. Below I demonstrate how to make the web.config file call to an external file for a connection string. This can also be done for connection strings stored as keys in the appSettings tag.</p>
<pre>&lt;configuration&gt;
&lt;appSettings/&gt;
&lt;connectionStrings configSource=”conns.config”&gt;&lt;/connectionStrings&gt;
&lt;system.web&gt;
&lt;/system.web&gt;
&lt;/configuration&gt;</pre>
<p>The conns.config file will then only contain a single section element and nothing else. Yes it is that simple.</p>
<pre>&lt;connectionStrings&gt;
&lt;add name=”myConnectionString”
connectionString=”Provider=Microsoft.Jet.OLEDB.4.0;
Data Source=C:My Database Foldermydatabase.mdb;
Jet OLEDB:Database Password=mypassword” providerName=”SQLOLEDB”/&gt;
&lt;/connectionStrings&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.quinterox.com/content/code/using-configsource/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
