PC Review


Reply
Thread Tools Rate Thread

Application settings

 
 
=?Utf-8?B?RGlyayBTY2hlbGZhdXQ=?=
Guest
Posts: n/a
 
      26th Dec 2005
Hello

I use the data source window to connect to a database.
Because the location of the database might vary, I want to change the
connectionstring at runtime via my.settings.... but this is an application
setting which can't be changed at runtime.
I know how to accomplish a connectionstring in code, but then I would lose
the advantages of the central data source window.
Do you have a solution for this situation?

Many thanks in advance.

--
Dirk Schelfaut
..NET developper
 
Reply With Quote
 
 
 
 
W.G. Ryan eMVP
Guest
Posts: n/a
 
      26th Dec 2005
In the 1.1 framework, you can't fiddle with app.config or web.config. But
you can use an XML file of your own (or other type of file) to store it in,
or you can use IsolatedStorage. Will either approach work for you?
"Dirk Schelfaut" <(E-Mail Removed)> wrote in message
news:34CC18D5-3B31-47A3-A289-(E-Mail Removed)...
> Hello
>
> I use the data source window to connect to a database.
> Because the location of the database might vary, I want to change the
> connectionstring at runtime via my.settings.... but this is an application
> setting which can't be changed at runtime.
> I know how to accomplish a connectionstring in code, but then I would lose
> the advantages of the central data source window.
> Do you have a solution for this situation?
>
> Many thanks in advance.
>
> --
> Dirk Schelfaut
> .NET developper



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Application Settings user settings storage directory Chris Crowther MBCS Microsoft Dot NET 5 9th Apr 2008 10:02 AM
Settings stored in ...\local settings\application data\... deleted Marco Windows XP General 0 28th Jan 2008 04:36 PM
My.Settings Application and User Scope Settings =?Utf-8?B?TUFUVA==?= Microsoft Dot NET Framework Forms 1 28th Mar 2007 11:14 PM
Dynamic settings entries with Application Settings. Sin Jeong-hun Microsoft C# .NET 2 1st Feb 2007 04:40 AM
ConfigurationManager, user settings and application settings Mark Ingram Microsoft Dot NET Framework 3 17th Jan 2006 05:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:10 PM.