SyntaxFix
Write A Post
Hire A Developer
Questions
In VB : This should work
VB
ConfigurationManager.ConnectionStrings("SQLServer").ConnectionString
In C# it would be (as per comment of Ala)
C#
ConfigurationManager.ConnectionStrings["SQLServer"].ConnectionString