I am able to read my connection string from my web.config file withing a Response.Write(); but when I put it in my SqlConnection([here]) it won't display, I don't get why
Can someone PLEASE I'm begging for a simple solution for this, please help!
This works fine:
Expand|Select|Wrap|Line Numbers
- string connectionInfo = ConfigurationManager.AppSettings["connectionString"];
- Response.Write(connectionInfo);
Expand|Select|Wrap|Line Numbers
- SqlConnection myConn = new SqlConnection(connectionInfo );