====== Configuration File ====== * for windows application we usually use //app.config//, for web application //web.config// === Get Connection String === var connStr = ConfigurationManager.ConnectionStrings["MyConnStr"].ConnectionString; === Get App Settings === var settings = ConfigurationSettings.AppSettings["Mykey"];