3
Reply

How Do I Store Multiple Connection String to APP.CONFIG File based on Dynamic Entry with Visual Basic

Adrian salmon

Adrian salmon

17y
9.7k
0
Reply

    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.

    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.

    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 tag as a connection string.  I want as many used strings to be stored in the file, so as long as the string is new it is stored along with the old one (pooling).  Please im urgrently seeking assistance.