<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Web Forms</title><link>http://forums.asp.net/18.aspx</link><description>All about building ASP.NET Pages - server controls, events, validation, etc.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: HELP :: Set Connection String Dynamicly in App.Config</title><link>http://forums.asp.net/thread/3276060.aspx</link><pubDate>Mon, 06 Jul 2009 06:01:27 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3276060</guid><dc:creator>vora_bhaumik</dc:creator><author>vora_bhaumik</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3276060.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=18&amp;PostID=3276060</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;U can also go through this link and also try the following code.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;http://social.msdn.microsoft.com/forums/en-US/sqlreportingservices/thread/f44516e2-36c3-45dd-8318-fcdf4a8113b9/&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;Code:-&lt;/b&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span id="ctl00_ContentPlaceHolder1_lblDescription" style="color:DarkBlue;"&gt;
&lt;pre&gt;&amp;lt;appsettings&amp;gt;&lt;br /&gt;&amp;lt;add key=&amp;quot;production&amp;quot; value=&amp;quot;http://www.production.com&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;add key=&amp;quot;ProductionconnectionString&amp;quot; value=&amp;quot;server=localhost;....&amp;quot; &amp;gt;&lt;br /&gt;&amp;lt;add key=&amp;quot;testconnectionString&amp;quot; value=&amp;quot;server=localhost;....&amp;quot; &amp;gt;&lt;br /&gt;&amp;lt;/appsettings&amp;gt;&lt;br /&gt;Public Application_BeginRequest()&lt;br /&gt;{&lt;br /&gt;bool production=false;&lt;br /&gt;if(Request.URL.Host==ConfiqurationManager.Appsettings(&amp;quot;production&amp;quot;))&lt;br /&gt;{&lt;br /&gt;Production=true;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;if(Production==true)&lt;br /&gt;{&lt;br /&gt;context.items.add(&amp;quot;connectionStrings&amp;quot;,ConfiqurationManager.Appsettings(&amp;quot;production&amp;quot;))&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;context.items.add(&amp;quot;connectionStrings&amp;quot;,ConfiqurationManager.Appsettings(&amp;quot;test&amp;quot;))&lt;br /&gt;}&lt;br /&gt;} &lt;/pre&gt;
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>HELP :: Set Connection String Dynamicly in App.Config</title><link>http://forums.asp.net/thread/3275229.aspx</link><pubDate>Sun, 05 Jul 2009 09:13:36 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3275229</guid><dc:creator>farhad_m</dc:creator><author>farhad_m</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3275229.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=18&amp;PostID=3275229</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello guys,&lt;/p&gt;
&lt;p&gt;How can I set connection string dynamicly in App.Config file? &lt;/p&gt;
&lt;p&gt;I want to use the dynamic connection string in DataSet&lt;/p&gt;</description></item></channel></rss>