hello guyz!! currently, i have this code(C# 2005) below to connect to my SQL 2005 Express edition
Code:
App.COnfig (excerpt)Code:string sqlConnStr; sqlConnStr = System.Configuration.COnfigurationSettings.AppSettings["ConnectionString"]; SqlConnection sqlConn = new SqlConnection(sqlConnStr); slqConn.Open
But it seems that the Method is obselete and according to Visual Studio 2005 it has been replaced by System.Configuration! System.Configuration.COnfigurationManager.AppSetting'. My question is how can i enhance it? thanks in advance!!!Code:<appSettings> <add key="ConnectionString" value="Data SOurce =....." /> </appSettings>




Reply With Quote