connecting to sql server using application configuration file
ASP.NET
5
Posts
2
Posters
0
Views
1
Watching
-
i m working on widows application..for connectivity to sql i want to give datasource in app config file..and in every page i wan to call that string but i dont understand how to do that can anyone help me??
$h@ma!|@
-
hi, add a appconfig file to your application... and add a key to that appconfig file.. eg:< > and in cs/vb file
string keyval = ConfigurationSettings.AppSettings["DATASOURCE"].ToString();
All I ever wanted is what others have....
CrazySanker -
thx but it is giving error i.e; The name 'ConfigurationSettings' does not exist in the current context
$h@ma!|@