i have an another web config file inside another folder..

How can i get the connection string From the above web config file?

Just read it from the file system with File.Read() if you have full trust on the site.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.