Interviews3 answers
How Do I Store Multiple Connection String to APP.CONFIG File based on Dynamic Entry with Visual Basic
3 Answers
this has a very poor posting capability. LOL it blocks the web.config syntax that i put. Email me at [email protected] and i will send you the codes.
Jeremy RamosPosted Aug 8, 2007, 8:27 AM EDT
Yesterday, I have just saved multiple connectionstrings but not in app.config
If you don't mind, try using the web.config of the root folder instead.
Below is the syntax to be put on the web.config:
And now, this is how you access those connectionstrings:
ConfigurationManager.ConnectionStrings["myConnectionString"].ConnectionString
ConfigurationManager.ConnectionStrings["myConnectionString1"].ConnectionString
ConfigurationManager.ConnectionStrings["myConnectionString2"].ConnectionString
*where each of those is now a string (ready for comparison for your string variables)
Hope my advice could help you.
Jeremy RamosPosted Aug 8, 2007, 8:25 AM EDT
I have been tryin for about 3 Days now to figure out the best way to add connection string to app.config file.
Ok, heres the scenario, the application im developing requires the user to input the connection string which is then validated. My problem is that I want the validated connection string to be stored in the app.config file under the
Adrian salmonPosted Aug 3, 2007, 7:58 AM EDT