jp2msft
1/23/2008 1:34:00 AM
Wasn't able to get my system to recognize 'ConfigurationManager'. In the
Help, I saw it was part of System.Configuration, but it still did not appear
even after adding "#using System.Configuration;".
How are you getting this?
"Cowboy (Gregory A. Beamer)" wrote:
> ConfigurationManager.ConnectionStrings["{Connection String Name}"]
>
>
> --
> Gregory A. Beamer
> MVP, MCP: +I, SE, SD, DBA
>
> *************************************************
> | Think outside the box!
> |
> *************************************************
> "jp2msft" <jp2msft@discussions.microsoft.com> wrote in message
> news:8EB08518-B154-4DE6-ACEF-2C384DB4E428@microsoft.com...
> > Using VB, I can access the database connection string (or other
> > application
> > settings) using:
> >
> > Dim myconnStr As String = My.Settings.ConnectionStringName
> >
> > What is the equivalent in C#?
> >
>
>
>