troubleshooting Question

How to read the connection string value from the web.config

Avatar of shieldguy
shieldguyFlag for United Kingdom of Great Britain and Northern Ireland asked on
.NET ProgrammingASP.NETVisual Basic.NET
8 Comments1 Solution428 ViewsLast Modified:
How can I read the value of the connectionstring1 from the web.config file in the  to create connetion object


<?xml version="1.0"?>
		<add name="connectionstring1" connectionString="Server=ABCServerName;Database=Db1;User ID=sa;Password=abc;Trusted_Connection=False;Min Pool Size = 9;Max Pool Size = 80" providerName="System.Data.SqlClient"/>
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 8 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros