I am trying to use teh code in a Windows program I am working on.. But it wont accept the connection object.
Code:
SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["CONNECTIONSTRING"].ConnectionString);
It says that it doesnt Recognize Configuration Manager.. When the auto-fill comes up its not listed on the list. I have all of the required Using References
Code:
Using System.Data;
Using System.Data.SqlClient;
Using System.Configuration;
Does this method not work on Windows Apps? And if not, how would I connect to a database through a class if I can't use this method?
Thx in advance,