Add Connection String in Web.Config File
First option can be used for windows authentication and second option is for SQL server authentication. 1. <connectionStrings> <add name="CustConnectionString" connectionString="Data Source=localhost; Integrated Security=SSPI; Intial Catalog=LocalTestDB" providerName="System.Data.sqlClient"/> </connectionStrings> 2. <connectionStrings> <add name="CustConnectionString" connectionString="Data Source=localhost; uid=sa; pwd =" providerName="System.Data.sqlClient"/> </connectionStrings>