Connection string problem
-
hi i'm trying to connect to the server without giving the static connection string. i want my application to access the connection string automatically. i'm using the follwoing code, but it doesn't give the connection string
ConnectionString = @"";
conn = new OleDbConnection(ConnectionString);
cmd = conn.CreateCommand();can u please explain that what am i missing, as i've already used the same code once and it is still working, but now that i am using the same code at some other location in the application it is not working. thanku for the time
-
hi i'm trying to connect to the server without giving the static connection string. i want my application to access the connection string automatically. i'm using the follwoing code, but it doesn't give the connection string
ConnectionString = @"";
conn = new OleDbConnection(ConnectionString);
cmd = conn.CreateCommand();can u please explain that what am i missing, as i've already used the same code once and it is still working, but now that i am using the same code at some other location in the application it is not working. thanku for the time
ConnectionString = ConfigurationManager.ConnectionStrings("YourConnectionString")
CleaKO
"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that." - Tommy Boy
"Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School) -
ConnectionString = ConfigurationManager.ConnectionStrings("YourConnectionString")
CleaKO
"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that." - Tommy Boy
"Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)thank u