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
|