refer to connection string in web.config code example Example: get connection string from web.config in c# get connection string