title: Connection String and Datacontext in LINQ
body: <p>I am developing a site using ASP.NET, SQL 2008 and LINQ. I want to ask about the connection string. I have made a class like that to get the datacontext in each page:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  
  public static class DatabaseConnection
  {
      static DataClassesDataContext datacontext;    
      public static DataClassesDataContext getConnection()
      {
         datacontext = new DataClassesDataContext(@"Data Source=localhost;Initial Catalog=dbname; Integrated Security=True");
          return datacontext;
      }
  }
  </code></pre>
  
  <p>Is that a correct way to get the connection in each page?</p>
  
  <p>Also about 'Data Source', when I deploy the site what will it be? And what is the difference between data source and address keywords?</p>