Wow, I've spent about 3 hrs now trying to figure this one out, none of the articles online were able to help me and some were using system libraries that were obsolete......a nyways,
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:
But when I put it in my SqlConnection it won't load :(
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:
Code:
string connectionInfo = ConfigurationManager.AppSettings["connectionString"];
Response.Write(connectionInfo);
Code:
SqlConnection myConn = new SqlConnection(connectionInfo );
Comment