Adrian salmon
How Do I Store Multiple Connection String to APP.CONFIG File based on Dynamic Entry with Visual Basic
By Adrian salmon in ASP.NET on Aug 03 2007
  • Jeremy Ramos
    Aug, 2007 8

    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.

    • 0
  • Jeremy Ramos
    Aug, 2007 8

    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.

    • 0
  • Adrian salmon
    Aug, 2007 3

    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.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS