You are getting ConnectionString Issue.
You need to add the connection string in the web config and read it in the code behind.
<connectionstrings>
<add name="constr" connectionstring="Data Source=SQLName;Initial Catalog=DataBaseName;Integrated Security=True;" providername="System.Data.SqlClient" />
</connectionstrings>
Reading ConnectionString.
string conStr = ConfigurationManager.ConnectionStrings["constr"].ConnectionString;