use connectionStrings from web.config code example Example: get connection string from web.config in c# get connection string