Showing posts with label developing. Show all posts
Showing posts with label developing. Show all posts

Tuesday, May 29, 2012

Make connection string from web.config

in your web application you can add the below line to read data configuration in web.config file

DataClassesDataContext lu = new DataClassesDataContext(System.Configuration.ConfigurationManager.ConnectionStrings["LikeWebPartDataConnection"].ConnectionString);

and add below line in appSettings section in web.config files